Tuesday, July 29, 2008

Netuse command, Samba mount with AD account

Netuse command
To see the remote share connected to this machine
C:\> net use
To disconnect remote share connected to this machine
c:\> net use \\172.16.193.231\IPC$ /delete

Samba mount with AD account
mount -t smbfs //172.16.193.50/unixbackup /mnt/samba -o rw,username=usamantaray/flagstonere,gid=users,dmask=777,fmask=777

user should change password in first login
Create a user with password and type below command
# passwd -d “username”
# chage -d 0 “username”
Process killing script
kill -9 `ps xa | grep “[n]ameofscript” | awk ‘{print $1}’`

Port monitoring
netstat -ap
nmap -sT -O localhost

No comments: