Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-05-2006, 01:22 PM   #1
LQ Newbie
Registered: Mar 2006
Posts: 19

Rep: Reputation: 0
Samba + smb.conf help.

Hello all,

I'm attempting to give certain users (not all) permission to write a file in a given directory. I've tried numerous smb.conf configurations to no avail. The closest I've come is being prompted for a uid and password, but I do not connect. I suspect that has something to do with the windows domain in which I'm in. Can anyone supply me with smb.conf stanza that will accomplish this? I'm not running winbind and would like Samba to handle all authentication. Any help would be greatly appreciated. thx.
Old 07-06-2006, 12:25 AM   #2
Registered: Sep 2005
Distribution: Slackware 13.37
Posts: 112

Rep: Reputation: 15
It would be helpful to see your smb.conf ... anyways

As you had a successful password request, I assume you have successfully configured your [global] section.

Now to make your share work you have to mount them where your users have access; using the Linux filesystem permissions.

If you don't know what I mean check this article
        comment = Things Files
        path = /smbroot/things
        valid users = @staff
        writeable = yes
        printable = no
        create mask = 0764 
        directory mask = 0764
        force group = staff
        force user = jwholey
This will create a Things share which has full acces for the jwholey, read write for the staff group and read only for the others.

make sure that you chmod and chown the things directory
chmod 0764 /smbroot/things
chown jwholey:staff /smbroot/things
and chmod your /smbroot or wherever your share is locate to give required access to the users.

I hope this helps.


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
Reinstalling Samba doesn't recover the original /etc/samba/smb.conf Akhran Debian 2 11-11-2005 01:54 AM
samba conf smb.conf regnier Mandriva 5 02-17-2005 05:27 AM
samba smb.conf lukalinuix Linux - Networking 5 06-21-2004 07:32 AM
/etc/samba/smb.conf tsitras Linux - Newbie 2 04-09-2004 09:33 PM
samba server and smb.conf gogo Linux - Software 1 05-04-2001 08:00 PM > Forums > Linux Forums > Linux - Software

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

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