1830207 Members
1163 Online
109999 Solutions
New Discussion

Samba setup + smb.conf

 
joseph wholey
Regular Advisor

Samba setup + smb.conf

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.
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Samba setup + smb.conf

Shalom,

Unix has something called users and groups.

Much more effective in this matter.

create group called project.

add all users permitted access to a group called project.

chmod 700 /project/

that last part is the filesytem or folder for the project.

You are done.

If you need a samba reference at all, you can give write permissions to the group the way you are trying now.

The problem may be limited to the chmod permissions on the samba share or its subfolders.

Could you post an example of what you tried in smb.conf and what the permissions are on the Samba share?

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Ferreira
Honored Contributor

Re: Samba setup + smb.conf

Do you have a Windows domain controller?

If so, you can configure the samba to autheticate using the DC. Use the options

security = server
password server =

If the user/password given is correct then SAMBA will try to find a username in the /etc/passwd that match that user name for permissions checks. That means that for every windows user you must also have a user in your Unix. Then, configure the permissions for the share as you want.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Andrea Rossi
Frequent Advisor

Re: Samba setup + smb.conf

smb.conf:
security = user

you have to add local users you want to use samba server to smbusers, using the smbpasswd command.

Ivan Ferreira
Honored Contributor

Re: Samba setup + smb.conf

Sorry, security = server is deprecated now, use instead:

security = domain
security = ADS

You must join the samba server to the domain.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
joseph wholey
Regular Advisor

Re: Samba setup + smb.conf

No ADS, no WINS etc... I need SAMBA to manage all of it.
Steven E. Protter
Exalted Contributor

Re: Samba setup + smb.conf

Shalom,

In light of your last response, my first response is the solution to this query.

Change user permissions to support your samba configuration.

Done.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com