[Novalug] permissions on non linux filesystem problem

Kevin Cole dc.loco at gmail.com
Fri Jul 6 10:20:34 EDT 2007


On 7/5/07, Bonnie Dalzell <bdalzell at qis.net> wrote:
>
> Linux can mount amiga partitions as affs partitions
>
> however on my setup with ubuntu it assigns ownership to root and i have
> to do something like
>
> chown -R bdz amiga1/*
>
> in order to access the files.
>
> here is my line in fstab that mounts the partitions.
>
> /dev/hdb1    /home/bdz/Desktop/Amiga/amiga1 affs user,auto 0 0
>
> any suggestions would be appreciated

As with Windoze partitions, affs partitions accept a few more fun
options.  From the mount man page:

Mount options for affs
       uid=value and gid=value
              Set  the  owner  and  group of the root of the file
system (default: uid=gid=0, but with option uid or gid without
specified value, the uid and gid of the current process are taken).

       setuid=value and setgid=value
              Set the owner and group of all files.

So, find out your uid and gid (look in /etc/passwd and /etc/group) and change
your fstab line to

/dev/hdb1 /home/bdz/Desktop/Amiga... afs user,auto,uid=???,gid=??? 0 0

-- 
Ubuntu Linux DC LoCo
Washington, DC
http://dc.ubuntu-us.org/


More information about the Novalug mailing list