LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-29-2012, 04:28 PM   #1
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona
Distribution: Slackware 14.1
Posts: 349

Rep: Reputation: 28
Samba share - root can write, no one else can


I'm trying to set up a read/write share for a specific user. This is what my smb.conf entry looks like:

[myshare]
read only = no
path = /home/myuser
guest ok = no
browseable = no
valid users = myuser
security = user

I can mount the share just fine, but only root can write to it. A non-root user, including myuser, cannot write to it. What am I missing?
 
Old 10-30-2012, 04:47 AM   #2
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 718

Rep: Reputation: 102Reputation: 102
writable = yes
 
Old 10-31-2012, 12:56 PM   #3
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona
Distribution: Slackware 14.1
Posts: 349

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by jv2112 View Post
writable = yes
To make a long story short, I realized this morning that I could not write to *any* of my shares as non-root user. I eventually was led to this being a problem that could be easily solved by mounting as the non-root user, but then I ran into the only root can do that when trying to run mount. So I added the share to fstab, and then I ran into the rather infamous:

This program is not installed setuid root - "user" CIFS mounts not supported.

So I chmod u+s /sbin/mount.cifs so I can run mount as non-root user.

This works.

Is there a better solution? It's a bit of a pain having to add all of my shares to fstab, there are about a dozen or so that I connect to from time to time.
 
Old 11-01-2012, 04:33 AM   #4
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 718

Rep: Reputation: 102Reputation: 102
Lightbulb

You should not have to do that. Do the path's in the shares have permissions set for the users you expect ? Are they all part of the same group ?

If the groups don't work for your situation you could always set up by specific user. The links below might be helpfull.


http://www.samba.org/samba/docs/using_samba/ch09.html

http://www.cyberciti.biz/faq/adding-...mba-smb-share/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
Samba against AD, cannot write to a share. mago Linux - Server 1 11-06-2008 12:12 AM
Why can I not write to a SAMBA share when read/write is enabled? eric m Linux - General 4 08-21-2006 09:22 PM
Samba - can't write to share rels Linux - Software 2 05-26-2006 12:39 PM
Can't write to Samba share erikcw Linux - Software 3 01-26-2005 03:59 AM


All times are GMT -5. The time now is 08:07 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration