Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Samba is a file server by which we can share file(s) betwen Sun Solaris (box) and
Windows.
port numbers
[edit]daemons
smbd & nmbd
[edit]protocols
smb (servers message block) all samba commands are available in (/usr/sfw/bin)
Daemonds
Samba Packagare are found into Solaris 5.9 2/2 CD Change to the directory
cd /etc/sfw
ls
cp smb.conf-example smb.conf
vi smb.conf
^ |- remove comments
75 ;encrypt password=yes
[myshare]
comment=samba share
path=/pub
valid user=u1 u2 -> user names
public = no -> If you want to share to all pulbic make changes to "yes"
writeable=yes
printable=no
create mask = 0765 -> FAP (file access permission)
^ |- remove all comments
wq!
Save the file
useradd -d /usr/u1 -m u1
passwd u1
useradd -d /usr/u2 -m u2
passwd u2
How to create samba user password file
cd /usr/sfw/bin
./smbpasswd -a u1 -> NOTE: samba password & sun solaris password (/etc/passwd) file
must be same
Option -a : Create smbpasswd file
cd ..
pwd
/usr/sfw
cd /usr/sfw/bin
[edit]How to add a user to samba
./smbclient -U u1 -L SAMBA-SERVER-NAMe
^
| _____ User name
mkdir /datashare
cd /sharedata
touch d1 a1 d2 a2
chmod 777 /sharedata
wq!
pgreb -1 mbd
pkill -HUP nmbd
pkill -HUP smbd
-> change workgroup name : my-home -> Assign IP if possible -> Change login setting
-> Login by using samba user id & password -> Check out for network neighbour hood