Jump to content


tomseek

Member Since 4 Aug 2013
Offline Last Active 28 Feb 2024 15:10
-----

Posts I've Made

In Topic: Configuring samba server on openpli 7.0

9 March 2019 - 11:03

Is there a way to disable the [root] share (entire filesystem) without editing it out from the smb.conf file?

I did this in this way...

in file smb-user.conf add this section

[global]
  security = user
  guest account = nobody
  guest ok = no
  map to guest = Bad Password

[root]
  # share to access the entire filesystem
  path = /
  comment = Receiver Filesystem
  read only = no
  browseable = yes
  guest ok = no
  valid users = root #you can add more users here
  create mask = 0664
  directory mask = 0775
  wide links = yes
  follow symlinks = yes

Don't know if this how it should be done but works for me. This way you have access to entire filesystem if you know root pass (and - if you add more valid users)


In Topic: Configuring samba server on openpli 7.0

5 March 2019 - 17:53

With OpenPLi 7.0+, you don't need to use smbpasswd anymore, you can just use passwd to change the password, it will by synced with the samba credentials database.

 

And if no linux user with that name exists, smbpasswd will fail, so that might be the issue as well. The -a option creates an SMB password for a linux user, but it doesn't create the linux user. Use "adduser" or "useradd" instead.

Thanks. All works as I want to work.

I create another user with access only to one folder (with movies :) ) on hdd everything else is NO ACCESS for average mortal user :D.

 

Thank you


In Topic: Configuring samba server on openpli 7.0

4 March 2019 - 19:09

Hi to all

How to create a new user

this is not working for me:

root@vusolo2:~# smbpasswd -a vusolo2
New SMB password:
Retype new SMB password:
Failed to add entry for user vusolo2.
root@vusolo2:~#

Thanks