Setup samba server on Fedora 14.
0.Install samba
for samba is not installed in fedora 14 default option.
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:
At the end of the file /etc/samba/smb.conf add the following lines:
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!):
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.
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.
Now add the user to the Samba user database:
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
for samba is not installed in fedora 14 default option.
Code:
yum install samba
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/
Code:
[...] [allusers] comment = All Users path = /home/shares/allusers valid users = @users force group = users create mask = 0660 directory mask = 0771 writable = yes
Code:
[...] [homes] comment = Home Directories browseable = no valid users = %S writable = yes create mask = 0700 directory mask = 0700
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
Code:
passwd tom -> Enter the password for the new user.
Code:
smbpasswd -a tom -> Enter the password for the new user.
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
Total Comments 0