Gentoo Forums
Gentoo Forums
Quick Search: in
Setting file permission for users "solved"
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dhanabalanb
n00b
n00b


Joined: 15 Jul 2007
Posts: 34

PostPosted: Thu Aug 30, 2007 4:27 am    Post subject: Setting file permission for users "solved" Reply with quote

Hi,

I have a folder called /test and user called test. I want only user test should have rwx prmissions. How do I modify permission to a particular user to access a folder.

Thanks,
Dhanabalan.


Last edited by dhanabalanb on Thu Aug 30, 2007 8:10 am; edited 1 time in total
Back to top
View user's profile Send private message
di1bert
l33t
l33t


Joined: 16 May 2002
Posts: 963
Location: Durban, South Africa

PostPosted: Thu Aug 30, 2007 4:48 am    Post subject: Reply with quote

This should do it:

Code:

chown test:users /test
chmod 700 /test


I'm also a fan of the Redhat way of "user group" where you create a group with
the same name as your user and make that your users primary group.

HTH

-m
Back to top
View user's profile Send private message
dhanabalanb
n00b
n00b


Joined: 15 Jul 2007
Posts: 34

PostPosted: Thu Aug 30, 2007 5:11 am    Post subject: Re: Setting file permission for users "Solved" Reply with quote

[quote="dhanabalanb"]Hi,

I have a folder called /test and user called test. I want only user test should have rwx prmissions. How do I modify permission to a particular user to access a folder.

Thanks,
Dhanabalan.[/quote]
Back to top
View user's profile Send private message
di1bert
l33t
l33t


Joined: 16 May 2002
Posts: 963
Location: Durban, South Africa

PostPosted: Thu Aug 30, 2007 6:13 am    Post subject: Reply with quote

Check my post above...that will do what you want.

Check the man pages for each command to get more detail...

-m
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum