Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

add or remove samba user

#Add the user
cmd :##  useradd john
	 ## passwd john
     
#Create Samba account
	## smbpasswd -a john
New SMB password:
Retype new SMB password:

#Configure samba
	## vi /etc/samba/smb.conf
[share1]
   comment = A Shared Directory
   path = /var/tmp/sharedir
   valid users = anthony john
   public = no
   writable = yes

#Restart samba
	##systemctl restart smbd

#Delete the user and samba user ##
	## smbpasswd -x john
	delete unix user(john) by userdel
 #now delete the system user
 	## userdel -r john
Comment

PREVIOUS NEXT
Code Example
Shell :: convert biom to tsv 
Shell :: ubuntu touchpad not working 
Shell :: install elasticsearch ubuntu 20.04 
Shell :: get all the branch in git 
Shell :: ubuntu check whats taking space 
Shell :: folder color ubuntu 
Shell :: speed up video with ffmpeg 
Shell :: check public ip address in terminal 
Shell :: shopify theme kit for linux 
Shell :: ngitignore 
Shell :: bash view system log info 
Shell :: pyqt5 designer download 
Shell :: acce;lerate ubuntu 
Shell :: git unrelated histories 
Shell :: checking if a substring exists in a string bash 
Shell :: docker starting forever 
Shell :: how t o force install a package even it is already install pip 
Shell :: change history editor 
Shell :: failed to restart mysql.service: unit mysql.service not found. 
Shell :: execute as another user linux 
Shell :: dexie nuxt 
Shell :: start apache server in ubuntu 
Shell :: linux mint package manager 
Shell :: install watchman windows 
Shell :: revert git pull 
Shell :: restart gnome shell 
Shell :: Vagrant - Remove all boxes 
Shell :: ubuntu check user groups 
Shell :: wsl install cmake 
Shell :: git init branch name 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =