On 27 April 2012 15:13, Jason White
<jason@jasonjgw.net> wrote:
Yes, try it without specifying gid or any other options.
Tried it, same result.
However if I specify the uid and gid as the numeric value it works!
~$ sudo mount.cifs //ad.monash.edu/home/my-server-name/colinfee /home/colinfee/ad-home -ocredentials=/home/colinfee/.
smb/ad-credentials,uid=1000,gid=1000
~$ ls -ald ad-home/
drwxr-xr-x 6 colinfee colinfee 0 Apr 16 16:42 ad-home/
According to man mount.cifs
uid=arg
sets the uid that will own all files or directories on the mounted
filesystem when the server does not provide ownership information.
It may be specified as either a username or a numeric uid. When not
specified, the default is uid 0. The mount.cifs helper must be at
version 1.10 or higher to support specifying the uid in non-numeric
form. See the section on FILE AND DIRECTORY OWNERSHIP AND
PERMISSIONS below for more information.
...and
~$ sudo mount.cifs -V
mount.cifs version: 5.3
--
Colin Fee
tfeccles@gmail.com