Can't Write to External Drive From User Account

Tim Writer tim-s/rLXaiAEBtBDgjK7y7TUQ at public.gmane.org
Tue Feb 27 18:33:59 UTC 2007


Glen Strom <gstrom-R6A+fiHC8nRWk0Htik3J/w at public.gmane.org> writes:

> On Tue, 27 Feb 2007 09:56:36 -0500
> lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org (Lennart Sorensen) wrote:
> 
> > On Mon, Feb 26, 2007 at 05:28:14PM -0500, Glen Strom wrote:
> > > drwxr-xr-x  2 root root 4096 2007-02-22 21:42 /mnt/usbdrive1
> > > 
> > > drwxr-xr-x  3 root root 4096 2007-02-25 23:28 /mnt/usbdrive2
> > 
> > So only root has write access, and everyone else can read.  Nothing
> > chmod and chown can't deal with.
> > 
> I tried the following combinations--none work.
> 
> rwx rwx rwx root root
> rwx rwx rwx root disk
> rwx rwx rwx root users
> rwx rwx rwx <user account> users

On the mount point with or without the drive mounted?

If you chown/chmod the mount point without the drive mounted, it is
overwritten (by the ownership and permissions of root of the mounted file
system) when it is mounted. You must chown/chmod the mount point after it
is mounted.

Of course, the file system must support permissions and ownership. If it's
a FAT file system, for example, this won't work. If it's a native Linux
file system (ext2, ext3, xfs, jfs, etc.), it will be fine.

-- 
tim writer <tim-s/rLXaiAEBtBDgjK7y7TUQ at public.gmane.org>                             starnix care inc.
647.722.5301                                      toronto, ontario, canada
http://www.starnix.com              professional linux services & products
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list