[Gllug] how to exclude some users from a drive?
salsaman at xs4all.nl
salsaman at xs4all.nl
Wed Apr 2 20:44:07 UTC 2008
On Wed, April 2, 2008 22:12, Andrew Farnsworth wrote:
> Diego Giurgola wrote:
>> Hi all, I have an Ubuntu machine; I have some drives that are mounted
>> on the /media/ subdirectory. How can be my user the only user who can
>> access to this drives/folders?
>> Thanks.
>>
>> Diego.
>>
> Diego,
> Just use the chown, chgrp, and chmod commands
>
> General Usage:
> chown <new owner> <path to directory>
> chgrp <new group> <path to directory>
> chmod <world permissions><Group Permissions><Owner Permissions> <path to
> directory>
>
>
> specific example:
> Assumptions:
> User = bob
> Group = bobs_group
>
> chown -R bob /media/mounted_volume
> chgrp -R bobs_group /media/mounted_volume
> chmod -R 077 /media/mounted_volume
>
> Note: 077 = No permissions to world, Read/Write/Execute permissions to
> Group, Read/Write/Execute permissions to Owner
>
> Andrew Farnsworth
> --
> Gllug mailing list - Gllug at gllug.org.uk
> http://lists.gllug.org.uk/mailman/listinfo/gllug
>
>
Shouldn't that be chmod 770 ?
Gabriel.
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list