fstab question

Magnus Therning magnus at therning.org
Sun Jan 16 09:05:52 UTC 2005


On Sun, Jan 16, 2005 at 04:53:38PM +1100, Cameron Hutchison wrote:
>Once upon a time Nicholas Pappas said...
>> Simon Taplin wrote:
>> 
>> > What I need to change to give all users full access to this parition, 
>> at this point I can only browse it as root.
>> 
>> 
>> /dev/hdc5    /media/Backups    reiserfs defaults,users    0    0
>> 
>>     The "users" option.
>
>The users option is typically used for removable media which mounted on
>demand.
>
>The fstab entry Simon provided did not have a "noauto" option so it
>would have been mounted on boot. Non-root users would not be able to
>unmount and remount it.
>
>Simon, What you want has nothing to do with fstab. You need to change
>the file permissions of the directory hierarchy, and possibly the
>owner/groups. It will depend on what level of access to the partition
>you want ordinary users to have.
>
>The commands you are looking for are chmod(1) and chown(1).
>
>As a start, to make the all files in the directory hierarchy readable to
>everyone, but writable only to root, run the following commands as root:
>
># find /media/Backups -type d -print0 | xargs -0 chmod u=rwx,g=rx,o-rx
># find /media/Backups -type f -print0 | xargs -0 chmod g=u-w,o=u-w

This would be easier, and the result the same:

 # chmod -R u=rwX,go=rX /media/Backups

/M

-- 
Magnus Therning                    (OpenPGP: 0xAB4DFBA4)
magnus at therning.org
http://magnus.therning.org/

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

$my_args = shift;
system("gcc $my_args");
print "I prefer C\n";
     -- Robert Dieterich's contribution to the 2004 Perl Haiku Contest,
        Haikus in Perl - 'Dishonerable Mention' winner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050116/9b75286d/attachment.sig>


More information about the ubuntu-users mailing list