First, uninstall samba-2.2,samba-2.2-client in YaST, it's going to say that other packages are dependent on them. Choose ignore all and uninstall.
Second, uninstall the cups package only, it will also say other packages
are dependent on it, chhose ignore all, and uninstall - it will try to
get you to put jds disk2 in to reinstall samba-2.2, select skip, when it
asks for jds disk2. it will now uninstall the packages.
third, install the samba 3.0.4 packages, you will need perl-ldap if you
install the ldap package. Also you will have to edit the
/etc/init.d/winbind (/etc/rc.d) for the tmp directory and set up the
imap uid and idmap gid. You will also have to set up nmb and smb to run
in your chosen runlevels, or else use swat to start the services when
you want to use them.
And finally, you have to set up your printer in YaST after, installing
samba-3.0.4
#############################################################################
SAMBA SETUP IN JDS
Here's a quick way to set up Samba, I'll use the example of setting
up
two linux computers as an example since I don't do windoze. However, the
basics are the same except for setting up File and Print Sharing for
Microsoft Networks, Client for Microsoft Networks,TCP/IP settings in the
Network Properties Window and WINS Configuration. I'll discuss both
setting up a Samba Server and a little on using Samba Client. Before I
begin, I want to make a note that all commands and edits will be as a
root user unless otherwise specified. Also both computers are already
networked.
1) On Server add user(s) to access the samba server:
adduser mrmdls
passwd mrmdls
2) On Server add the name of the group of user can access on the samba
server, since workgroup is the default we'll use that:
groupadd workgroup
gpasswd -a mrmdls workgroup
3) Make a directory for the group
mkdir /home/workgroup
chmod a+rw /home/workgroup
4) Edit /etc/samba/smb.conf to allow the group and users to use samba,
on the bottom of the page, add:
[workgroup]
comment = Dave's Samba Server (or whatever)
path = /home/workgroup
writeable = yes (if you want them to be able to write to the directory)
writelist = mrmdls (or as many users as you added)
now save your changes, and it's important to note the space before and
after =
also if you don't need encryption, comment out: encrypt password = yes
smbpasswd file = /etc/samba/passwd
5) Create and change the samba passwords, so that they're only readable and
writeable by root. We'll also add our samba password for our user(s)
cat /etc/passwd | /usr/share/doc/packages/samba/examples/scripts/mksmbpasswd.sh > /etc/samba/smbpasswd
chmod 600 /etc/samba/smbpasswd
smbpasswd mrmdls
6) Edit /etc/hosts.allow of the computer or computers allowed to access
the samba server. On bottom of page add:
192.168.0.0/24
0r
192.168.0.2
moxie.localnet.org
7) Start your smb and nmb services for your desired runlevels, use
runlevel editor to set, and also start the services.
8) Run the testparm command to set your changes you made to
/etc/samba/smb.conf note:(you should always rerun this command, anytime
changes are made - I alway rerun it if I reboot the computer)
testparm
Now that's the end of setting up the Samba Server, now we'll take a
quick look at using the samba client. All COMMANDS ARE NOT ROOT, I'll
use my computer confederate.localnet.org 192.168.0.7
1) To Connect to a Samba Share:
smbclient // confederate.localnet.org/workgroup -U mrmdls
Or
smbclient // 192.168.0.7/workgroup -U mrmdls
you'll be asked for your smbpassword
2) After Connecting, you will see a prompt like:
smb:\>
to transfer a file use the get command to transfer the file to your home
directory.
smb:\>get foo.spec