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
# passwd -d “username”
Process killing script
kill -9 `ps xa | grep “[n]ameofscript” | awk ‘{print $1}’`
Port monitoring
netstat -ap
nmap -sT -O localhost
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
# chage -d 0 “username”
nmap -sT -O localhost
No comments:
Post a Comment