| View previous topic :: View next topic |
| Author |
Message |
dhanabalanb n00b

Joined: 15 Jul 2007 Posts: 34
|
Posted: Thu Aug 30, 2007 4:27 am Post subject: Setting file permission for users "solved" |
|
|
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 |
|
 |
di1bert l33t


Joined: 16 May 2002 Posts: 963 Location: Durban, South Africa
|
Posted: Thu Aug 30, 2007 4:48 am Post subject: |
|
|
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 |
|
 |
dhanabalanb n00b

Joined: 15 Jul 2007 Posts: 34
|
Posted: Thu Aug 30, 2007 5:11 am Post subject: Re: Setting file permission for users "Solved" |
|
|
[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 |
|
 |
di1bert l33t


Joined: 16 May 2002 Posts: 963 Location: Durban, South Africa
|
Posted: Thu Aug 30, 2007 6:13 am Post subject: |
|
|
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 |
|
 |
|