Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1961  / 1 Year ago, wed, december 14, 2022, 2:00:19

I'm using Ubuntu/Samba and I seek for an explanation how to:




  • put password protection access to computer, not on single directories

  • list all directories that I share, and not search them manually



I always put directories to permit guests, because when I don't do that when I try access it says invalid permissions. I can't even use my root/user password combination to access.


More From » samba

 Answers
7

After not being too lazy, I found what I needed. These are probably basic things for advanced users:




  • I couldn't access protected shares with my root username/password because I didn't add that user to samba system (it seems that it doesn't take automatically ubuntu users, and its user/pass system exists by its own which is a good thing). To add a user just use smbpasswd -a [USERNAME] and then type the new password.


  • For listing all local shares and their paths just access /var/lib/samba/usershares folder and there you have all configuration files for every single shared directory. Inside the file you have fields path (with the path to your local directory) and guest_ok (y/n type to permit guests) which you can edit manually.




I will not lock this topic yet, waiting for improvements from other users (if there's anyone who will read this). I just wrote this answer to help some other lost noob like me ;)


[#31649] Thursday, December 15, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rialhirt

Total Points: 422
Total Questions: 113
Total Answers: 120

Location: France
Member since Sun, May 15, 2022
2 Years ago
rialhirt questions
Mon, May 24, 21, 18:24, 3 Years ago
Tue, May 10, 22, 21:43, 2 Years ago
Thu, Feb 16, 23, 16:32, 1 Year ago
Mon, Jun 13, 22, 03:02, 2 Years ago
;