Jump to content


Photo

Configuring samba server on openpli 7.0


  • Please log in to reply
45 replies to this topic

Re: Configuring samba server on openpli 7.0 #41 tomseek

  • Member
  • 11 posts

0
Neutral

Posted 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



Re: Configuring samba server on openpli 7.0 #42 Beanie

  • Senior Member
  • 66 posts

0
Neutral

Posted 9 March 2019 - 05:51

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



Re: Configuring samba server on openpli 7.0 #43 tomseek

  • Member
  • 11 posts

0
Neutral

Posted 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)


Edited by tomseek, 9 March 2019 - 11:07.


Re: Configuring samba server on openpli 7.0 #44 WanWizard

  • PLi® Core member
  • 68,536 posts

+1,736
Excellent

Posted 9 March 2019 - 11:07

Most of that is default, and therefore not needed.

 

If you want to enable authentication, the only thing you need to do is to uncomment the "smb-secure" include at the top of the "smb-user" file.

 

Do not edit the smb.conf file, it is generated on a restore, in which case you lose your changes. Instead, use smb-user to override the defaults, as in the example above.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Configuring samba server on openpli 7.0 #45 Beanie

  • Senior Member
  • 66 posts

0
Neutral

Posted 9 March 2019 - 19:51

Great - thank you both!



Re: Configuring samba server on openpli 7.0 #46 Beanie

  • Senior Member
  • 66 posts

0
Neutral

Posted 10 March 2019 - 03:27

Just to follow up, here is another way to remove the root (entire filesystem) share.

 

Add the following to  /etc/samba/smb-user.conf

# stops root share from activating
[root]
-valid = no



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users