[GLLUG] permission woes
Charles Ulrich
charles at bityard.net
Sat Jun 2 00:00:55 EDT 2012
By default, only root can mount filesystems. But of course when you do
that, and the filesystem doesn't support the standard unix-style
permissions (such as a CIFS share), then the whole filesystem is only
available to root.
According to the mount.cifs(8) man page, you can specify the 'uid' and
'gid' options, like so:
sudo mount -t cifs -o uid=user,gid=user //192.168.1.105/shared
/home/user/shared
That ought to make the filesystem readable/writable by "user".
Charles
On Fri, Jun 1, 2012 at 2:02 PM, Bert W. Carrier Jr.
<bertcarrier at gmail.com> wrote:
> Here's an update with my shared files permissions nightmare:
>
> I have been learning about the mount command. so far the syntax that I've
> been using is
>
> sudo mount -t cifs //192.168.1.105/shared /home/user/shared
>
> This works, and my freeNAS drive is mounted at home/user/shared, but it does
> not allow a normal user (in this case user) to write new files to the
> directory. Is there anything obvious I'm missing?
>
> Thanks so much for any help.
>
>
> Bert
> _______________________________________________
> linux-user mailing list
> linux-user at egr.msu.edu
> http://mailman.egr.msu.edu/mailman/listinfo/linux-user
More information about the linux-user
mailing list