Share your knowledge at the LQ Wiki.
Go Back > Blogs > brave heart
User Name


Rate this Entry

Setup samba server on Fedora 14.

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

0.Install samba
for samba is not installed in fedora 14 default option.
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:
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:
  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!):
   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.
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.
passwd tom

-> Enter the password for the new user.
Now add the user to the Samba user database:
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:
Posted in Uncategorized
Views 1117 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 12:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration