Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt-get remove --purge samba
- sudo apt-get remove --purge smbclient libsmbclient
- sudo apt-get purge samba samba-common
- sudo rm -rf /etc/samba/ /etc/default/samba
- sudo apt-get install samba
- sudo apt-get install smbclient libsmbclient
- dpkg-reconfigure samba-common
- or
- sudo cp -a /usr/share/samba/smb.conf /etc/samba/
- root@Dell-Inspiron-3521:~# sudo smbpasswd -a username (username should be without space eg "sudo smbpasswd -a alamjitsingh")
- New SMB password:
- Retype new SMB password:*********
- Added user alamjitsingh.*********
- sudo gedit /usr/share/samba/smb.conf
- [global]
- workgroup = WORKGROUP
- passdb backend = tdbsam
- security = user
- #map to guest = bad user
- force user = alamjitsingh
- [Shared_drive_Name]
- path = /media/alamjitsingh/Shared_drive_Name (alamjitsingh is my ubuntu username)
- comment = HD Share
- read only = yes
- available = yes
- browseable = yes
- writable = no
- guest ok = no
- public = yes
- printable = no
- locking = no
- strict locking = no
- sudo service samba reload
- sudo service samba restar
- sudo service samba stop
- sudo service samba start
- sudo service samba status
- sudo service samba force-reload
- sudo /etc/init.d/smbd start
- sudo /etc/init.d/smbd stop
- sudo /etc/init.d/smbd restart
- sudo testparm
- sudo service nmbd start
- sudo service smbd start
- sudo systemctl restart smbd
- sudo systemctl start smbd
- sudo systemctl restart nmbd
- sudo systemctl start nmbd
- sudo service nmbd status
- sudo service smbd status
- sudo service smbd restart
- samba -V
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement