LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 07-05-2006, 12:22 PM   #1
jwholey
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-05-2006, 11:25 PM   #2
pddm
Member
 
Registered: Sep 2005
Distribution: Slackware 13.37
Posts: 111

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 http://www.comptechdoc.org/os/linux/..._ugfilesp.html
Code:
[Things]
        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
Code:
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.
 
  


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


All times are GMT -5. The time now is 08:00 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