How do I get samba to show up? I need a step-by-step tutorial, I have tried some but they haven't worked. The IP addresses: 192.168.0.3 for the Linux 192.168.0.2, 192.168.0.4 to 192.168.0.9 for windows boxes. Also, I screwed up samba, how do I do a fresh samba reinstall? I am a total noob, and I don't know how to replace some parts of the configuation files. I need step by step. Fedora 8 also.
To remove Samba, cd to the directory where smb.conf resides. (for Debian it is /etc/samba) Make sure the file is there do: ls if smb.conf is listed do: rm -rf ./smb.conf Then uninstall Samba do: rpm -e samba Then follow this guide: ( You should be able to do this in a console if you have a GUI installed ) http://www.howtoforge.com/samba-fileserver-with-swat-fedora8 While you are in the SWAT interface, there is a button for setting up a Printer. Printers Settings To affect a currently configured printer, simply click on the pull-down button between the Choose Printer and the Delete Printer buttons and select the printer you wish to operate on. To edit the settings, click on the Choose Printer button. To delete the share, simply press the Delete Printer button. To create a new printer, next to the button labeled Create Printer, enter into the text field the name of the share to be created, then click on the Create Printer button. If the windows machines can not access the server, you may need to set the "security = user" in smb.conf to "security = share".
I am in Active COnnects,a nd Active Shares. My IP (my laptop) shows up... but I cannot add printer or add network place.
At the bottom is a base smb.conf for sharing printers. All commands are done via console A few explanations of basic settings: The "workgroup = " is what the name of the workgroup the server will be in. The "interfaces = " and "bind interfaces only = yes" makes samba respond to your lan, not the Internet (this should be set for the ip's you specified) The "security = share" allows Windows to see and communicate with the samba server. Some people use "security = user", I have always had trouble with this, that is why I use the "share" setting. You may need to change this to "user" If you want to make a shared directory that anyone with access to the lan can use without having to login, then as root: cd / mkdir /shared chmod 777 /shared then add this to the smb.conf ------------------------------------------------------------------- [shared] path = /shared available = yes browsable = yes public = yes create mask = 0777 writable = yes -------------------------------------------------------------------- then restart samba Warning........ this means ANYONE with access to the lan can read, write, delete and create files an folders in this directory. To control the users tha are allowed to use the shared directory, as root, add the user: useradd your_user then set the password: passwd your_user then create a samba password for the user: smbpasswd -a your_user then edit the smb.conf [shared] to look like this: --------------------------------------------------------- [shared] path = /shared valid users = your_user create mask = 0660 directory mask = 0771 writable = yes --------------------------------------------------------- Then restart samba To add another user to the share, follow the instructions for adding a user, password, and samba password, then add them to the valid users line valid users = your_user another_user This will require a user name and password to access the shared folder If you use "workgroup = home" double click Windows Network on the desktop double click on "Entire Network" then double click on "Microsoft Windows Network" and you should see "Home". double click on "Home" and your server should be listed. double click on server and your printer(s) and shared folder should be listed. ----------------------------------------------------------------------------------- [global] workgroup = home server string = Fedora interfaces = 192.168.0.0/24 bind interfaces only = yes security = share obey pam restrictions = Yes passdb backend = tdbsam passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *passwd:*password\supdated\ssuccessfully* . syslog = 0 log file = /var/log/samba/log.%m max log size = 1000 dns proxy = No panic action = /usr/share/samba/panic-action %d invalid users = root [printers] comment = All Printers path = /var/spool/samba create mask = 0700 printable = Yes browseable = No --------------------------------------------------------------------------------------------- Hope this helps!