[Bug 563805] Re: mount.cifs won't mount shares; set uid bit not set

2011-02-03 Thread Peshko R.
So, I set up sudoers and works great. But we have another problem thou.
I have put everything in the fstab. In Gnome if you go to Places you see
the mount point, but if you decide to go there it says Unable to mount
test2 (which is my mount point for the cifs). If I manually mount it,
obviously you canno umount it.

So, how can you fix Places, to be able to mount/umount it (again it is
in my fstab) with no problems?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
https://bugs.launchpad.net/bugs/563805

Title:
  mount.cifs won't mount shares; set uid bit not set

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 563805] Re: mount.cifs won't mount shares; set uid bit not set

2010-06-25 Thread jgreenso
Does this mean other mount.X utils will be similarly affected?

Does the fstab man page now need to be updated to say that the 'user'
flag does not apply to cifs and possibly others?

-- 
mount.cifs won't mount shares; set uid bit not set
https://bugs.launchpad.net/bugs/563805
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 563805] Re: mount.cifs won't mount shares; set uid bit not set

2010-06-21 Thread bbruecker
 setuid bit is set to /bin/mount and /sbin/mount.cifs:
sudo ls -la /bin/mount /sbin/mount.cifs
-rwsr-sr-x 1 root root 72188 2010-03-22 18:51 /bin/mount
-rwsr-sr-x 1 root root 30424 2010-04-09 17:29 /sbin/mount.cifs

but I got:
mount -t cifs //server/datenauf$ /mnt -o user,rw,user=bbr,dom=ivu-ag
mount: Nur „root“ kann dies tun

(that means: only root can do). The user I try to mount this share is
the owner of /mnt. So for me the workaround is not working and for both
files the setuid was already set!

-- 
mount.cifs won't mount shares; set uid bit not set
https://bugs.launchpad.net/bugs/563805
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 563805] Re: mount.cifs won't mount shares; set uid bit not set

2010-05-28 Thread Derek Simkowiak
I disagree with Dietmar's comment #5, which says that 9.10 didn't
have the setuid bit.

Here is my Ubuntu 9.10:

r...@cst6:~# ls -la /bin/mount /sbin/mount.cifs 
-rwsr-xr-x 1 root root 78096 2009-10-22 21:28 /bin/mount
-rwsr-xr-x 1 root root 36296 2010-03-22 15:27 /sbin/mount.cifs

Here is my Ubuntu 10.4:

r...@cst5:/etc/samba# ls -la /bin/mount /sbin/mount.cifs
-rwsr-xr-x 1 root root 82256 2010-03-22 10:57 /bin/mount
-rwxr-xr-x 1 root root 35648 2010-04-09 10:38 /sbin/mount.cifs

As an aside, I see that /sbin/mount.nfs are still set to be setuid
(in Ubuntu 10.4):

r...@cst5:/etc/samba# ls -la /sbin/mount.nfs
-rwsr-xr-x 1 root root 94544 2010-03-23 23:18 /sbin/mount.nfs

-- 
mount.cifs won't mount shares; set uid bit not set
https://bugs.launchpad.net/bugs/563805
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 563805] Re: mount.cifs won't mount shares; set uid bit not set

2010-05-27 Thread Ganton
Thierry, what about /bin/mount?

   $ which mount | xargs ls -l
   -rwsr-xr-x 1 root root 72188 2010-03-22 18:51 /bin/mount

it has the setuid bit set. Should mount and mount.cifs be treated
equally?

Previously, people could use mount without wondering if it was sudo
mount.cifs or just mount or whatever.

-- 
mount.cifs won't mount shares; set uid bit not set
https://bugs.launchpad.net/bugs/563805
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 563805] Re: mount.cifs won't mount shares; set uid bit not set

2010-05-21 Thread Thierry Carrez
Setting the setuid bit on mount.cifs is discouraged upstream and opens
interesting security vulnerabilities:

smbfs (2:3.4.5~dfsg-2) unstable; urgency=low
  * As of this version, the mount.cifs binary is no longer setuid.
Upstream has always been increasingly unsupportive of this
configuration over time. For instance, in bugs like
https://bugzilla.samba.org/show_bug.cgi?id=6853, it is clearly
mentioned that having it setuid root is discouraged.
 -- Christian Perrier bubu...@debian.org  Sat, 06 Feb 2010 15:09:00 +0100

Ubuntu will not deviate from upstream or Debian in that respect, so this
bug won't be fixed. Rather than restoring the missing +s, I suggest
you use sudo when running mount.cifs. If you need finer-grained
control, you can use /etc/sudoers to define a specific group that could
run that specific command without having access to the whole thing.

** Bug watch added: Samba Bugzilla #6853
   https://bugzilla.samba.org/show_bug.cgi?id=6853

** Changed in: samba (Ubuntu)
   Status: Triaged = Won't Fix

-- 
mount.cifs won't mount shares; set uid bit not set
https://bugs.launchpad.net/bugs/563805
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 563805] Re: mount.cifs won't mount shares; set uid bit not set

2010-05-19 Thread Niko Ehrenfeuchter
I think Dietmar's comment #5 is pretty interesting: the binaries in 9.10
did *NOT* have the suid-bit set, but it definitely worked for me back
then (and for others too, as they reported). So there must have been a
way to make this work. Have there been any of the mechanisms mentioned
by Wladimir involved in 9.10?

-- 
mount.cifs won't mount shares; set uid bit not set
https://bugs.launchpad.net/bugs/563805
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 563805] Re: mount.cifs won't mount shares; set uid bit not set

2010-05-11 Thread Wladimir Mutel
DebianSamba people say that's insecure to add setuid bit on these binaries, 
and so this fix is discouraged.
Probably this could be resolved through some other security mechanism, like 
PolicyKit or pmount ?

-- 
mount.cifs won't mount shares; set uid bit not set
https://bugs.launchpad.net/bugs/563805
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 563805] Re: mount.cifs won't mount shares; set uid bit not set

2010-05-09 Thread Sina Eetezadi
For me on the Lenovo T410s with the desktop edition setuid fixed it.
However on the Asus EeePC 901 with the Netbook Edition is was not
necessary to set.

Just to mention.

-- 
mount.cifs won't mount shares; set uid bit not set
https://bugs.launchpad.net/bugs/563805
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 563805] Re: mount.cifs won't mount shares; set uid bit not set

2010-05-07 Thread DietmarLudmann
Same here, setuid fixed it, thx.

Since I still have Ubuntu 9.10 on another partition I looked up the
permissions and found out that mount.cifs und umount.cifs have no setuid
bit set there and they are working without it (on Ubuntu 9.10).

-- 
mount.cifs won't mount shares; set uid bit not set
https://bugs.launchpad.net/bugs/563805
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 563805] Re: mount.cifs won't mount shares; set uid bit not set

2010-05-04 Thread Timmmm
Yeah got this issue too. Was mount.cifs suid in 9.10?

There's also a 'Mount FUSE filesystems' permission that can be set for
users through the GUI now. It made no difference though...

-- 
mount.cifs won't mount shares; set uid bit not set
https://bugs.launchpad.net/bugs/563805
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 563805] Re: mount.cifs won't mount shares; set uid bit not set

2010-05-02 Thread Andries Filmer
the fix

 sudo chmod +s `which mount.cifs`
 sudo chmod +s `which umount.cifs`

-- 
mount.cifs won't mount shares; set uid bit not set
https://bugs.launchpad.net/bugs/563805
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 563805] Re: mount.cifs won't mount shares; set uid bit not set

2010-04-29 Thread booi
I too have run into this issue. 9.10 this was fine, 10.04 mount.cifs
requires the setuid bit before allowing users to do this w/o sudo
privileges. This may be a packaging regression?

-- 
mount.cifs won't mount shares; set uid bit not set
https://bugs.launchpad.net/bugs/563805
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 563805] Re: mount.cifs won't mount shares; set uid bit not set

2010-04-17 Thread Adrien Chauve
** Description changed:

  Binary package hint: samba
  
  In 9.10 this worked fine:
  
  dut...@vampire:~$ mount.cifs //dragon/dutchy ~/dragon/
  Password:
  
  In 10.04, i get:
  
  dut...@vampire:~$ mount.cifs //dragon/dutchy dragon/
- Password: 
+ Password:
  mount error(1): Operation not permitted
  Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
  
  Setting the set uid bit fixed the problem:
- dut...@vampire:~$ sudo chmod +s /sbin/umount.cifs
+ dut...@vampire:~$ sudo chmod +s /sbin/mount.cifs
  
  I am quite sure I didn't change this, so somewhere in the upgrade
  process 9.10 - 10.04 something went wrong.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: smbfs 2:3.4.7~dfsg-1ubuntu1
  ProcVersionSignature: Ubuntu 2.6.32-19.28-generic 2.6.32.10+drm33.1
  Uname: Linux 2.6.32-19-generic x86_64
  NonfreeKernelModules: nvidia
  Architecture: amd64
  CIFSMounts: Error: command ['mount', '|', 'grep', 'cifs'] failed with exit 
code 1: mount: only root can do that
  Date: Thu Apr 15 15:07:39 2010
  ProcEnviron:
-  LANG=en_US.UTF-8
-  SHELL=/bin/bash
+  LANG=en_US.UTF-8
+  SHELL=/bin/bash
  SambaClientRegression: Yes
  SourcePackage: samba

-- 
mount.cifs won't mount shares; set uid bit not set
https://bugs.launchpad.net/bugs/563805
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 563805] Re: mount.cifs won't mount shares; set uid bit not set

2010-04-15 Thread Dutchy

** Attachment added: CifsVersion.txt
   http://launchpadlibrarian.net/44263109/CifsVersion.txt

** Attachment added: Dependencies.txt
   http://launchpadlibrarian.net/44263110/Dependencies.txt

** Attachment added: SambaInstalledVersions.txt
   http://launchpadlibrarian.net/44263111/SambaInstalledVersions.txt

-- 
mount.cifs won't mount shares; set uid bit not set
https://bugs.launchpad.net/bugs/563805
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 563805] Re: mount.cifs won't mount shares; set uid bit not set

2010-04-15 Thread Scott Moser
** Changed in: samba (Ubuntu)
   Importance: Undecided = Medium

** Changed in: samba (Ubuntu)
   Status: New = Triaged

-- 
mount.cifs won't mount shares; set uid bit not set
https://bugs.launchpad.net/bugs/563805
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs