User Tools

Site Tools


server:samba_windows_share

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

server:samba_windows_share [2021/06/18 16:36] – external edit 127.0.0.1server:samba_windows_share [2021/12/11 13:12] (current) lucid
Line 25: Line 25:
 </code> </code>
  
-If you want to create multiple SMB users, and hence multiple corresponding Linux users, it is wise to disable certain permissions for those users within Linux. +If you need to create multiple SMB users, [[server:samba_windows_share_multiuser|go here]].
- +
-The ''/user/sbin/nologin'' shell disables SSH access to that user. +
- +
-<code> +
-$ sudo adduser <user2> --shell /usr/sbin/nologin +
-$ sudo smbpasswd -a <user2> +
-</code>+
  
 ====Configuration==== ====Configuration====
Line 39: Line 32:
 These this file is used to configure the relevant shares and permissions. These this file is used to configure the relevant shares and permissions.
  
-Adding a simple share, with only ''user2'' having access to it, would require this configuration at the bottom of the config file:+Adding a simple share, with only ''<user>'' having access to it, would require this configuration at the bottom of the config file:
  
 <code> <code>
-[User Two Files+[share
-comment = Second User Files +comment = Files 
-valid users = user2+valid users = <user>
 public = yes public = yes
 writable = yes writable = yes
server/samba_windows_share.1624034180.txt.gz · Last modified: 2021/06/18 16:36 by 127.0.0.1