SAMBA - Create User: Difference between revisions

From Wiki.IT-Arts.net
imported>Z
(Created page with "Category:Post-It <nowiki> TO ADD USER # with no shell adduser --shell /bin/false USER # with the 'bash' shell adduser --shell /bin/bash 'name' passwd USER (Then ent...")
 
imported>Z
No edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:




To add a user:
  <nowiki>
  <nowiki>
TO ADD USER
# with no shell
# with no shell
adduser --shell /bin/false USER
adduser --shell /bin/false USER


# with the 'bash' shell
# with the 'bash' shell
adduser --shell /bin/bash 'name'
adduser --shell /bin/bash USER


passwd USER
passwd USER

Latest revision as of 16:24, 30 March 2020



To add a user:

# with no shell
adduser --shell /bin/false USER

# with the 'bash' shell
adduser --shell /bin/bash USER

passwd USER
(Then enter the password)

smbpasswd -a USER
(Then enter the password)