LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-11-2010, 02:03 PM   #1
dh4
LQ Newbie
 
Registered: Mar 2006
Posts: 8

Rep: Reputation: 0
mounting cifs as user - permissions problem with SUID bit


I have looked at a LOT of forum posts and other sites trying to solve this problem but I have had no luck. I've seen the following:

http://www.linuxquestions.org/questi...d.php?t=446162
http://www.linuxquestions.org/questi...d.php?t=738988
http://www.linuxquestions.org/questi...d.php?t=738733

I have an entry in my fstab that lets root mount a samba share on a Windows Server 2003 machine and gives users full read/write access to the share. The fstab entry looks like:

Code:
//servername.net/share  /mnt/share  cifs  rw,user,umask=000,username=someuser,noauto,file_mode=0777,dir_mode=0777 0   0
However, when a normal user tries to mount the share they get one of two errors:

1. If I have /sbin/mount.cifs set to 777

Code:
mount error(1): Operation not permitted
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
2. If I have /sbin/mount.cifs set to +s

Code:
mount error: permission denied or not superuser and mount.cifs not installed SUID
Does anyone have any suggestions as to how I would go about getting a user able to mount this samba share?
 
Old 01-11-2010, 02:31 PM   #2
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
using mount option user ?
 
0 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting cifs with read/write permissions for a non-root user icmp_request Linux - Networking 5 01-28-2014 12:33 PM
Mounting CIFS with write permissions alkos333 Slackware 5 03-02-2012 12:16 PM
Mounting cifs with read/write permissions for a non-root user icmp_request Linux - Newbie 5 07-09-2009 08:16 PM
Mounting CIFS as normal user abovett Linux - Networking 2 05-18-2006 04:58 PM
SUID file drops suid bit on append? c_coder Programming 1 03-12-2004 07:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration