Comments on Samba Server Configuration in Ubuntu 14.04 LTS
This guide explains how to configure samba server in Ubuntu 14.04 with anonymous & secured samba servers. Samba is an Open Source/Free Software suite that provides seamless file and print services to SMB/CIFS clients. Samba is freely available, unlike other SMB/CIFS implementations, and allows for interoperability between Linux/Unix servers and Windows-based clients.
27 Comment(s)
Comments
why are you giving 777 permission to anonymous folder.As far as I know giving execute permission(where you don't need) on a folder is not a good security practice.
Apart from that..nice tutorial.thanks.
Terrific tutorial. Worked perfect the first time. Thanks!
Hi Srijan,
As always beautiful work! But I think there is a letter missing. Not sure, as you know I'm not that great at Linux. I think the config file is called smb.conf !? Just helping in case a newbie like myself comes across this problem.
Thanks for the great tutorial!!!
Kind Regards
Dan
Hello again,
Forgot this. Regarding the "mv" command. Isn't this removing the conf file. Making a backup file, yes, but we do need the original smb.conf to modify do we not?
Well, I'm probably wrong. Just didn't get it...
You have succeded wher others have failed. I couldnt get Samba working at all but this tut got it working first time. I nearly fell off the chair.
well done, and thanks
Keith
Thanks for greate post but my PC unseen by Windows PCs althouth they are on same workgroup!
How can I fix this issue?
I forgot to mention that Windows PCs has Windows 8.1 Pro x64
Thanks, very nice how-to!
Do you know difference between /etc/samba/smb.conf and /etc/samba/smb.cnf ?
typo, bro!
Great stuff!!! Follow on question:
1) if instead of the smbgrp, I wanted to giver permission to user 'xyz', could I just put 'xyz' as valid users in smb.conf?
2) If I wanted to allow 2 or 3 users access to a Share, but not have them in a group, could I just put 'xyz, abc, def' as valid users in smb.conf? In other words, can I put a list of users separated by commas?
see guyss please tell how to see windows xp share floder from ubuntu system
Bonjour, j'ai apprécié que vous ayez commencé par un exemple de smb.conf simple a comprendre et a mettre en oeuvre. TY
In case you're getting the error "Access Denied" after trying to write anything in Anonymous public share, try to change "smb.conf" the following way:
#============================ Share Definitions ============================== [Anonymous] path = /samba/anonymous browsable = yes writable = yes guest ok = yes read only = noforce user = nobody
That's it! Good luck!
Instead of root use samba username.
How to add multiple directory in secured section smb.conf file?
Splendid, this tutorial is very complete. Thx
nice tutor
keep it up guy.
Well done. This was the first tutorial I came across that actually helped! Thank you.
do you have a config für a group of users, that use files and directories as they want?
I tried a lot, but always find some greyed "special rights" on the windows clients instead of clear rights given in solid black.
I would like:
file of the group: group can do anything incl. modify, delete and change rights
folder of the group: group can do anything incl. making subdirs and delete
instead I get folders that can only be altered in their rights by the owner
After: "chmod -R 0770 secured/"I would add : "sudo chown -R root:smbgrp samba/secured/"I.e. add group "smbgrp" to samba/secured. Not sure.
thanks for articles i have vinis settiing the samba....
Thank you for this perfect tutorial. This is the only tutorial that I have found till now which works.
Excellent, my smb.conf was longer and it did not work, with this tutorial now its working samba.
Only a question, i tried to share a folder of another disk, it didnt work. any idea what i couldnt share my folder.
I want to install this on a Virtual Server in the cloud. How do I connect to the server then? With something like smb://192.168.x.x ??
Hi,
I think there something wrong about adding group. I follow the steps below but the server says "Option g is ambigous (gecos, gid group). I think there something wrong that code below. Anyone who has a bright idea?..""
adduser srijan -G smbgrp
thanks a lot. . .
groupadd smbgrp
adduser srijan smbgrp