Another approach - solution?
Peter Garrett
peter.garrett at optusnet.com.au
Fri Jan 11 09:51:46 UTC 2008
On Fri, 11 Jan 2008 20:17:24 +1100
Peter Garrett <peter.garrett at optusnet.com.au> wrote:
> > As the user name is not stored, but the user ID, the files will belong to
> > the user with the ID 1000, when you later mount the USB disk on a real
> > system. If necessary you can change the ownership when it is mounted on
> > the real system then.
>
> Actually there is a problem here - on a live CD the ubuntu user has the
> UID and GID 999 - not 1000. 1000 is used for the first created user when
> installing.
Apologies for the double post...
I just tried the following here, on an ext2 formatted USB stick, and it
appears to be a more flexible solution.
Say the disk is mounted as /media/disk : do this ...
sudo chown root:floppy /media/disk
sudo chmod 770 /media/disk
Now any user in the "floppy" group can read and write to the device. Any
user not in "floppy" has no access - but Ubuntu places the default user in
group floppy anyway. You could use another group instead, for example
"cdrom" - same effect. This persists across eject/umount/remount.
Peter
--
"INX Is Not X" Live CD based on Ubuntu 7.04 : http://inx.maincontent.net
Screenshots slideshow: http://inx.maincontent.net/album/1.png.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080111/850f08d8/attachment.sig>
More information about the ubuntu-users
mailing list