LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Blogs > brave heart
User Name
Password

Notices

Rate this Entry

Setup samba server on Fedora 14.

Posted 08-02-2011 at 09:53 PM by brave heart
Updated 08-25-2011 at 10:15 PM by brave heart

0.Install samba
for samba is not installed in fedora 14 default option.
Code:
yum install samba
and don't forget to start smb service.

1.Disable SELinux
SELinux is a security extension of Fedora that should provide extended security. In my opinion you don't need it to configure a secure system, and it usually causes more problems than advantages (think of it after you have done a week of trouble-shooting because some service wasn't working as expected, and then you find out that everything was ok, only SELinux was causing the problem). Therefore I disable it.

Edit /etc/selinux/config and set SELINUX=disabled
then reboot the system

2.Adding Samba Shares
Add a share that is accessible by all users,
create the directory for sharing the files and change the group to the users group:
Code:
mkdir -p /home/shares/allusers
chown -R root:users /home/shares/allusers/
chmod -R ug+rwx,o+rx-w /home/shares/allusers/
At the end of the file /etc/samba/smb.conf add the following lines:
Code:
[...]
[allusers]
  comment = All Users
  path = /home/shares/allusers
  valid users = @users
  force group = users
  create mask = 0660
  directory mask = 0771
  writable = yes
If you want all users to be able to read and write to their home directories via Samba, add the following lines to /etc/samba/smb.conf (make sure you comment out or remove the other [homes] section in the smb.conf file!):
Code:
[...]
[homes]
   comment = Home Directories
   browseable = no
   valid users = %S
   writable = yes
   create mask = 0700
   directory mask = 0700
Now we restart Samba.

3. Adding And Managing Users
In this example, I will add a user named tom. You can add as many users as you need in the same way, just replace the username tom with the desired username in the commands.
Code:
useradd tom -m -G users
Set a password for tom in the Linux system user database. If the user tom should not be able to log into the Linux system, skip this step.
Code:
passwd tom

-> Enter the password for the new user.
Now add the user to the Samba user database:
Code:
smbpasswd -a tom

-> Enter the password for the new user.
Now you should be able to log in from your Windows workstation with the file explorer (address is \\x.x.x.x or \\x.x.x.x\tom for tom's home directory) using the username tom and the chosen password and store files on the Linux server either in tom's home directory or in the public shared directory.

4. Important addings
system->administration->firewall->trusted services->you should mark samba in the tablet(as root)
Otherwise, the firewall will still prevent your access.

Original from Falko Timme's topic:
http://www.howtoforge.com/fedora-14-...tdbsam-backend
Posted in Uncategorized
Views 855 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 11:35 AM.

Main Menu
Advertisement

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