Smb.conf config help


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Smb.conf config help
# 1  
Old 09-23-2015
Smb.conf config help

So what i am trying to accomplish is the following:
a share that is browse-able by every one on the network with a group of people that can write to it with out ownership problems. I am extremely new to samba/linux and any help would be greatly appreciated. It is a stand alone server running samba 3.6.
# 2  
Old 09-23-2015
Who is allowed to access what files is still limited by ordinary Linux file permissions, so that has to be set up carefully. Your users must login to Samba as users allowed to access the right files, and Samba must create their files with permissions which allow them to be used later.

A globally anonymous "everyone else" user is tricky. If you have any control over windows account names, I'd make the anonymous ones all "student" or something (and renaming a Windows account after it's created does NOT actually change the username!) and give more proper logins, names without capital letters or spaces, to people who authenticate with a real username and password.

Getting permissions right means deciding what Linux filesystem permissions you want the files to end up with and configuring Samba to enforce that. If you want one group of users to have read-write access and another to have read-only access, you want the files to be created with rw-rw-r-- permissions and to all belong to a group you create, perhaps share or the like.

You also want the directories to be rwxrwsr-x and belong to the share group, so that files created in it belong to the group.

As a start, perhaps append something like this to your smb.conf :

Code:
[Share]
path=/path/to/fileshare
create mask = 664
# Set sticky bit on new folders people create
directory mask = 2775
writeable = yes

Then add a user by these shell commands:

Code:
# Add user as a UNIX user.
useradd username
# do NOT give them a UNIX password.
# give them a Samba password.
smbpasswd -a username

The password you give Samba must match their Windows login password. Then restart Samba and see if they can browse to \\servername\share, and see what permissions any files and folders they create become with ls -l in Linux.

I'm researching how to do the anonymous/guest user without password.

Post the smb.conf you already have so we can tell what else needs to be changed.

Last edited by Corona688; 09-23-2015 at 12:35 PM..
# 3  
Old 09-23-2015
Code:
[global]
        server string = Samba Server Version %v
        interfaces = lo, eth0, em1, 192.168.1.2/32
        security = SHARE
        password server = None
        log file = /var/log/samba/log.%m
        max log size = 50
        load printers = No
        printcap name = /etc/printcap
        local master = No
        domain master = No
        dns proxy = No
        idmap config * : backend = tdb
        guest ok = Yes
        hosts allow = ALL
        cups options = raw


[public]
        comment = Public Data
        path = /home/public
        read only = No
        guest only = Yes
        volume = Public-Data
[sandbox]
path = /home/sandbox
comment = Sandbox
volume = sandbox
browseable = yes
guest ok = yes
read only = yes
writeable = no
follow symlinks = yes
wide links = no
write list = @dcsadmin
force group = dcsadmin

# 4  
Old 09-23-2015
I think you want 'security=user', not 'security=share'.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Configure resolv.conf and nsswitch.conf

Hi, I've installed Solaris 11.3(live media) and configured DNS. Everytime I reboot the server, resolv.conf got deleted and it created a new nsswitch.conf. I used below to configure both settings: # svccfg -s dns/client svc:/network/dns/client> setprop config/nameserver = (xx.xx.xx.aa... (1 Reply)
Discussion started by: flexihopper18
1 Replies

2. Shell Programming and Scripting

Script to update rsyslog.conf and auditd.conf

Hello all, Newbie here. I'm currently tasked with updating rsyslog.conf and auditd.conf on a large set of servers. I know the exact logging configurations that I want to enable. I have updated both files on on a server and hope to use the updated files as a template for the rest of the... (3 Replies)
Discussion started by: Mide
3 Replies

3. Red Hat

Httpd.conf Config?

hi is it possible ? explain tome about below items StartServers 8 MinSpareServers 10 MaxSpareServers 20 ServerLimit 4000 MaxClients 4000 MaxRequestsPerChild 4000 this is my servers 8gig ram & cpu 12 core... what cann i putting in order this ? tnx (1 Reply)
Discussion started by: mnnn
1 Replies

4. Shell Programming and Scripting

Shell script that will compare two config files and produce 2 outputs 1)actual config file 2)report

Hi I am new to shell scripting. There is a requirement to write a shell script to meet follwing needs.Prompt reply shall be highly appreciated. script that will compare two config files and produce 2 outputs - actual config file and a report indicating changes made. OS :Susi linux ver 10.3. ... (4 Replies)
Discussion started by: muraliinfy04
4 Replies

5. UNIX for Dummies Questions & Answers

How to configure smb.conf for read and copy access only

Hi there, I want to give access with samba to a folder but with read and copy rights but no write. I don't want somebody to be able to delete the files. I found the read only parameter but this doesn't allow the users to copy the files. Is there an option for this? The configuration looks... (2 Replies)
Discussion started by: sickboy
2 Replies

6. Solaris

basic question on sd.conf and lpc.conf file

Hello Guys, Do we need to configure this file only if we add SAN disk or even if we add local disk, do we need to modify? (4 Replies)
Discussion started by: mokkan
4 Replies

7. UNIX for Dummies Questions & Answers

smb.conf question

Folks; I know this might sounds stupid, but please help with this: I have share in my smb.conf on my SUSE 10 box. How can i make this share accessible to outside IP range or a specific IP address without need for user/pass? Here's the share as it's written in smb.conf: ; ;comment =... (0 Replies)
Discussion started by: Katkota
0 Replies

8. UNIX for Advanced & Expert Users

Configuring snmpd.conf and snmptrapd.conf

HI, I want a help for Configuring snmpd.conf and snmptrapd.conf (i.e Configuring SNMP) for receiving TRAPS in my networks. I am using RHEL4.0 OS. Please tell me How I can configure above two files in a proper way and at an advanced level. Especially I am getting... (2 Replies)
Discussion started by: jagdish.machhi@
2 Replies

9. UNIX for Dummies Questions & Answers

swat's smb.conf file?

i am running samba 3 on solaris 9 i have a question where is the smb.conf located is it in /usr/local/samba/lib or private (6 Replies)
Discussion started by: rmuhammad
6 Replies

10. UNIX for Advanced & Expert Users

Samba 2.2.5 smb.conf for noobies

Is there a generic smb.conf file that should work on all systems? Right now I am running Red Hat 7.3 and also have 3XP machines and 1 2000 pro. (1 Reply)
Discussion started by: GJC
1 Replies
Login or Register to Ask a Question