Samba
From MohidWiki
How to mount a samba drive in a *NIX platforms:
from /mnt/:
mount -t smbfs -o username=USER,password=PASSW //mandriva/cgi-bin/nph-dods/dods-data /var/www/html/dods-data
Contents
Managing the samba service
>service smb restart >service smb start >service smb stop
Configuring samba
Edit the /etc/samba/smb.conf
#/etc/samba/smb.conf
[global]
workgroup = MARETEC
server string = Samba Server
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = No
hosts allow = 192.168.20. 192.168.23.
cups options = raw
[homes]
comment = Home Directories
read only = No
[printers]
comment = All Printers
path = /usr/spool/samba
printable = Yes
browseable = No
[public]
path = /home/samba/public
read only = No
guest only = Yes
guest ok = Yes
Adding samba users
To add a samba password:
root@dual_64# smbpasswd -a fedora
Henceforth, the \\Dual_64 share is available from a windows NT environment to user fedora.
This command will display NT domain available hosts:
user@dual_64# smbclient -U guillaume -W MARETEC -L maretec.ist.utl.pt
This command allows to access NT hosts machines:
user@dual_64# smbclient //GUILLAUME/Aplica -U guillaume -W MARETEC