Re: USB Drive weirdness
Nevyn <[email protected]>
| Newsgroups | gmane.org.user-groups.linux.new-zealand.general |
|---|---|
| Message-ID | <CAOnjfzxL3SrQwVUs9GPb4qEZ=L4Z6XmAR-ZoD83VnNQV53YZgw@mail.gmail.com> |
Right you are. A bit of a pain given that /media is generally the automatically handled stuff so the mount points appear/disappear on mounting/unmounting. I did start looking toward udev and then decided I was yak shaving - in which case, udev doesn't do the mounting... it's something in gnome... So setting the uid, gid options from whatever is setting them seems to be the place to look. On 12 October 2011 10:47, Bruce Kingsbury <[email protected]> wrote: > If you're using a filesystem that supports unix-style permissions then > it'll > use those permissions. By default a new filesystem root directory is owned > by root and only root has permission to write to it. open a terminal and > 'sudo chmod a+rwx -R /media/whatever' to make the root directory and > anything you already put into it writable by everyone (you should only have > to do this once, the change of permissions will be permanent) > > Be aware that any files you create will be owned by your current user > though; if you have a different UID (eg another login one the same > computer, > or someone else's computer that's not using the same UID) then you'll be > back to not having permission to change those files. > > For any filesystem that doesn't support unix permissions (eg fat32 or > ntfs), > gnome mounts the drive with all files owned by the current user. > > On 12 October 2011 09:55, yuri <[email protected]> wrote: > > > On 12 October 2011 09:48, Nevyn wrote: > > > Hi everyone, > > > > > > Running Ubuntu 10.04 - I have a 2TB usb drive. When I plug it in, it > > mounts > > > it in /media and brings up a nautilus window. Cool... only.... it seems > > to > > > mount it as root. Plug in a usb stick (4GB) and it mounts it as > myself... > > > > > > Does anyone know why it has this particular inconsistency this and how > to > > > customise it? I'm assuming this is a function of Gnome given that it > > doesn't > > > happen if logged into the terminal... > > > > Okay, I'm going to make a wild guess. > > My theory is - if the filesystem on the removable media does not > > support unix-style permissions, it gets mounted as user. Otherwise it > > gets mounted as root. > > > > Looking forward to correction, > > Yuri de Groot > Regards, Nevyn http://nevsramblings.blogspot.com/ _______________________________________________ NZLUG mailing list [email protected] http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug