[Gllug] how to exclude some users from a drive?

James Holland holland.james at yahoo.co.uk
Wed Apr 2 20:28:57 UTC 2008


Alternatively, in Gnome, click on System, Administration, Users and
Groups. For each user click on Properties, then click on User Privileges
and untick cdrom and other drives.

Or, sudo gedit /etc/group and make sure that you are the only user for
the drives you require.

On Wed, 2008-04-02 at 16:12 -0400, 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




More information about the GLLUG mailing list