CIFS – Common Internet File System
configuration - /etc/samba/smb.conf
Documentation
- /usr/share/doc/samba-doc/htmldocs/samba-pdc.html
Domain
– see PDC (Primary Domain Controler)
id and password required to navigate to shared file on a UNIX server – see user id and password required to navigate to shared file on a UNIX server
log files - /var/log/samba, look for log.nmbd, log.smbd
“nobody” user shows up when trying
to connect to Samba server from client PC as evidenced by issuing command:
ps -aux
| grep smb
make
sure the Windows user is the same as the Linux id when you right click “My
Computer”/manage and in the window that pops up go to
System
Tools/Local Users and Groups/Users
and
make sure the “Name” and “Full Name” are the same
also,
on the Linux end, make sure you set the samba password
smbpasswd
-a userid
pdbedit -a
-u userid
smbpasswd -a
userid (smbpasswd is deprecated)
password
expiration
pdbedit
-v -P
'maximum password age' -C 2592000
to set
Thirty days before expiration , -C in seconds
password and ID required to navigate to shared file on a UNIX server – see user id and password required to navigate to shared file on a UNIX server
PDC (Primary
Domain Controler)
processes
– ps -aux | grep nmbd and ps -aux | grep smbd
restart - /etc/init.d/samba restart
share file
on Leo - /usr/loca/company_shared_files
start – smbd -D -s, nmbd -D – but restart instead whenever possible
stop
– – use restart instead whenever possible. But otherwise:
kill
-TERM -a <PID> or, supposedly, kill -TERM smbd (also, kill -TERM -a nmbd
and kill -HUP -a inetd)
if you get
-su: kill: -a: no such pid
-su: kill: smbd: no such pid
then
ps -aux | grep smbd
to find the number of the process you’re looking for, and kill it instead
SWAT
testparms
– need to be in /usr/sbin for this to work
troubleshooting article sent by Dave S.
user id and password required to
navigate to shared file on a UNIX server – emacs /etc/samba/smb.conf
and look for
security = user
and change it to
security = share
version – smbd -V
Windows
server tools –srvtools.exe
ps
-aux | grep smb
—X—
1