LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 11-20-2004, 02:56 PM   #1
Kethinov
Member
 
Registered: Oct 2003
Location: ESU, Student Teaching 5th Grade
Distribution: Ubuntu
Posts: 118

Rep: Reputation: 15
smbfs shares writable to root only


Simply stated no matter how much I hack at this I can't get my mounted smbfs shares to be writable to anyone except root.

fstab looks like this:

\\computer\share /mnt/smbshare smbfs username=[username on that computer],password=[password for that user],uid=user 0 0

The share mounts fine. Root can read and write to it. All the regular users on this computer cannot.

How do I mount smbfs shares (w/fstab) as writable to all nonroot users?

Last edited by Kethinov; 11-20-2004 at 03:02 PM.
 
Old 11-21-2004, 09:23 AM   #2
sandwhale
LQ Newbie
 
Registered: Nov 2004
Location: DFW Texas
Distribution: Debian Sarge
Posts: 20

Rep: Reputation: 0
I had a similar problem where other users could see the share and files on the share, but couldn't write to existing files - they could create new files. In my case it was an ownership issue - root had copied all the files to the share.

To fix this, I created a group (named pco), then used chown and chgrp to "give" those files to the group, then in smb.conf, in the section for the share, I set

valid users = @pco

again - I am very new to all this, so not sure if it's relevant to your situation, but it solved my problem.

Best Regards,
Mike
 
Old 11-21-2004, 09:52 AM   #3
Kethinov
Member
 
Registered: Oct 2003
Location: ESU, Student Teaching 5th Grade
Distribution: Ubuntu
Posts: 118

Original Poster
Rep: Reputation: 15
That's kind of a backwards way to do it. What I'd really like to do is find a way to grant ALL users the same privs as root by default with regards to smbfs mounts without changing user groups and specifying uids and whatnot.
 
  


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
is there a limit to the number of windows shares that can be mounted via smbfs? punt Linux - General 6 04-19-2005 02:47 PM
anyone know to make samba shares writable? jasybee2000 Linux - Software 4 01-07-2005 08:25 AM
Samba 3.0.5 Oddness - Mounting smbfs shares rignes Slackware 3 08-16-2004 12:19 PM
Windows shares not writable through Samba soren625 Linux - Software 4 07-15-2004 11:34 AM
Making Windows shares writable when mounting in RH9 biased99 Linux - Networking 2 03-03-2004 04:40 AM


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

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