Hi,
Forget to ask you one, How can we give user specific permission for any directory
for example, Let's say that we have 3 more users ( a, b, c ) other than root & we have two dir - dirA & dirB
I want to allow the users a & b to use (rwx) the dir - dirA user b should use (rwx) both the dir - dirA & dir B user c should not be able to use any of the dir root can use ofcource all the directories. How can I do this?
Thanks & Regards, SAMEER :) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ My Messenger IDs : MSN : s2sameer Yahoo! : s9sameer RediffBol : s2sameer Indiatimes : s2sameer Visit My web-site @ : www.geocities.com/s9sameer/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On Sun, 25 Aug 2002, Sameer Shinde wrote:
Hi,
Forget to ask you one, How can we give user specific permission for any directory
for example, Let's say that we have 3 more users ( a, b, c ) other than root & we have two dir - dirA & dirB
I want to allow the users a & b to use (rwx) the dir - dirA user b should use (rwx) both the dir - dirA & dir B user c should not be able to use any of the dir root can use ofcource all the directories. How can I do this?
#chown a dirA #chgrp b dirA #chmod 770 dirA #chown b dirB #chgrp b dirB #chmod 700 dirB
for more users you can create a group say foo (use groupadd) now add user(s) to foo (use usermod) and I guess procedure remains similar as above
P.S. i deleted the mail of vfat AFAIK the defaults of vfat *are* write permissions only for root I think you have to use umask=000 instead of defaults in fstab
please man mount and goto section Mount options for fat also man bash and see umask
HTH -- Nikhil