INFORMATICS

The Best

Przełącznik języka

This Site

CMS

Hardware

Uncategorised

useful sites

Databases

Emulators

Powershell

Storage Array

DNS

Antivirus program

Licznik

2.png0.png6.png4.png1.png9.png4.png
Today188
Yesterday953
This week2500
This month10789
Total2064194

Visitor Info

  • IP: 35.171.164.78
  • Browser: Unknown
  • Browser Version:
  • Operating System: Unknown

Who Is Online

8
Online

Tuesday, 13 April 2021 08:32

SAMBA new user

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

The document translated automatically

 

Adding a user to SAMBA

We do it in two steps

1) add the user to the server LINUX / UNIX using the command useradd / adduser

2) The same user can be added to the samba server using the smbpasswd command.

Step 1 Add the user to Linux / Unix

Add the command line in the user's shell configuration file /etc/adduser.conf.

We can do this by using useradd

Enter the command line command

#aseradd karol

#passwd karol

OR

adduser karol

Step 2 Add the user to the samba

New user connecting to the server to get to the Samba server must wear an additional password.

Add the password with the command:

#smbpasswd s karol

Step 3 Add the user to the shared Samba

By default, a newly established user has access to your home folder / home / charles.

If karol wants to have access to another foldru eg / data / accounts which is provided by the server SAMBA should he add such access.

Open the file /etc/samba/smb.conf and modify access to your account.
[accounts]
comment = Accounts data directory
path = / data / accounts
valid users = kinia test karol
public = no
writable = yes

After making the changes save the file

Step 4 restart samba server.

perform this command

#service smb restart

OR


# /etc/init.d/smb Reload

From this point the user can log on to the SAMBA server to shared resources

Search