[Bug 859259] Re: uid, gid, forceuid, forcegid seem to be ignored in smbmount on oneiric 11.10 beta2

Rob 859259 at bugs.launchpad.net
Tue Feb 11 23:20:11 UTC 2014


Over 2 yrs later and this bug is still present in precise 12.04.3 LTS??
WTF. MarcS's workaround of changing from symbolic uid and gid to numeric
worked for me as well.

Old /etc/fstab line
//server/share /win/server/share cifs rw,user,uid=john,gid=john,forceuid,forcegid,noexec,credentials=/home/john/share.txt 0 0

New /etc/fstab line
//server/share /win/server/share cifs rw,user,uid=1000,gid=1000,forceuid,forcegid,noexec,credentials=/home/john/share.txt 0 0

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cifs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/859259

Title:
  uid,gid,forceuid,forcegid seem to be ignored in smbmount on oneiric
  11.10 beta2

Status in “cifs-utils” package in Ubuntu:
  Confirmed

Bug description:
  I recently upgraded from 11.04 to 11.10 beta 2.

  I've been using smbmount to connect to a samba share on another ubuntu
  machine for years, but since upgrading it has stopped working
  properly.

  The command I've used successfully in the past is:

  sudo smbmount //server/bigdrive ~/big -o
  user=deb,passwd=mypass,uid=chris,gid=chris,iocharset=utf8

  That always used to make the files show up as user chris, group chris,
  and so I could edit them locally.  In 11.10 however, that same command
  makes everything appear to be user root, group root.  Even if I add
  'forceuid' and 'forcegid' options, they still show up as root:root.
  If I add the 'noperm' mount option too, the files still show up as
  root:root, but then I can edit them.  However, I'm still unable to
  delete files from directories with the 't' bit set, whereas previously
  I was able to delete such files.  Here's an example.  The folder has
  the 't' bit set.  File 'x' doesn't exist.  I can create it, but not
  delete it, unless I use 'sudo' to do so.

  chris at chris:~/big$ ls -ld .
  drwxrwxrwt 32 root root 0 2011-09-25 16:03 .
  chris at chris:~/big$ ls -l x
  ls: cannot access x: No such file or directory
  chris at chris:~/big$ touch x
  chris at chris:~/big$ ls -l x
  -rw-r--r-- 1 root root 0 2011-09-25 16:03 x
  chris at chris:~/big$ /bin/rm x
  /bin/rm: cannot remove `x': Operation not permitted
  chris at chris:~/big$ sudo /bin/rm x
  chris at chris:~/big$ ls -l x
  ls: cannot access x: No such file or directory
  chris at chris:~/big$ 

  I mounted the share using:

  sudo smbmount //server/bigdrive ~/big -o
  noperm,user=deb,passwd=mypass,uid=chris,forceuid,gid=chris,forcegid,iocharset=utf8

  Here are the versions:

  chris at chris:~/big$ lsb_release -rd
  Description:	Ubuntu oneiric (development branch)
  Release:	11.10
  chris at chris:~/big$ apt-cache policy cifs-utils
  cifs-utils:
    Installed: 2:5.0-1ubuntu1
    Candidate: 2:5.0-1ubuntu1
    Version table:
   *** 2:5.0-1ubuntu1 0
          500 http://ubuntu.osuosl.org/ubuntu/ oneiric/main i386 Packages
          100 /var/lib/dpkg/status
  chris at chris:~/big$

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cifs-utils/+bug/859259/+subscriptions



More information about the foundations-bugs mailing list