Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am struggling to properly configure the guest account for Samba.
I would like to grant access to anonymous / guest user to my DVD-drive.
I have found the advice to read the man page in the old thread:
Thanks this link is really helpful!
Unfortunately, my two questions about the "password file" and the validation of the guest account is still not clear.
The first two things I did, are
1.) add a folder for the guest account & setting the proper rights and
2.) open a section for the guest account inside "smb.conf".
The guest account must exist in the Linux server. By default the guest account is mapped to user "nobody" (which will exist, but the shell is configured to /sbin/nologin). The 'guest account =' can be used to set it to any other such user that may exist similarly, but best left as default IMHO.
Thanks this link is really helpful!
Unfortunately, my two questions about the "password file" and the validation of the guest account is still not clear.
1. check out Creating a Local User Account, then compare that with what you see in Creating a Basic authenticated access smb.conf File and Creating a Basic guest only smb.conf File. Then all that against the first paragraph of Guest Account from ferarri's link. That should set you up for success.
2. This is just saying, make sure the username that Guest accounts are associated with has access to all the services you want Guest accounts to have access to. They warn that Unix uses 'nobody' as that account, and that on some systems 'nobody' doesn't have Printer permissions. That's why they recommend redefining that user to 'ftp'.
Further, I defer to experts, and am off to n00b around the forums.
Last edited by CmdLineInterface; 01-04-2023 at 03:34 AM.
The guest account must exist in the Linux server. By default the guest account is mapped to user "nobody" (which will exist, but the shell is configured to /sbin/nologin). The 'guest account =' can be used to set it to any other such user that may exist similarly, but best left as default IMHO.
Thanks!!!
The password file that is meant in the man page "smb.conf" is the global one for the machine.
The proposed user "ftp" needs to exist in this file. To check, if the user "ftp" exist you can type:
Quote:
cat /etc/passwd | grep ftp
The user rights of "ftp" is equal to the ones of user "nobody", "nobody" is expected to exist,
therefore,
You should test this by trying to log in as your guest user (perhaps by using the su - command)
But I am still confused, is the user "nobody" really the right one?
How to check, if the rights of "nobody" are suitable to access a DVD via remote VLC session?
If the access rights of "nobody" are sufficient I can map the guest user to the user "nobody" in my "smb.conf":
Quote:
[DVD]
comment = Samba_DVD
browseable = yes
read only = yes
map to guest = Bad User
guest ok = yes
guest account = nobody
# man pages vfs_fruit: https://www.samba.org/samba/docs/cur...s_fruit.8.html
vfs objects = catia fruit streams_xattr
fruit:resource = file
fruit:metadata = netatalk
But I am still confused, is the user "nobody" really the right one?
That is for you to decide as the administrator of your Linux server. It is the guest user for samba by default, and commonly used in many distros. You are free to create a dedicated user for samba guest access.
Quote:
How to check, if the rights of "nobody" are suitable to access a DVD via remote VLC session?
The user "nobody" is usually used for NFS (and samba guest access) only.
You can check the groups a user belongs to using
Code:
groups <username>
Quote:
If the access rights of "nobody" are sufficient I can map the guest user to the user "nologin" in my "smb.conf":
The user is not called "nologin", it is "nobody" and has no ability to login to the Linux system.
If you seriously want to create "a guest account" – which I do not(!) recommend – then that account must correspond to a "real" user. Guests will then act under the auspices of that system user.
"nobody" is a dummy-account that cannot actually be used. The configuration file examples reference this user-id simply as a placeholder.
Nevertheless: I emphasize that "guest accounts" – in any context at all – are not a good idea. Simply create an account for your guests to use, and tell them how to use it. "If you want to share my files, you must have 'real' credentials."
Last edited by sundialsvcs; 01-05-2023 at 02:52 PM.
That is for you to decide as the administrator of your Linux server. It is the guest user for samba by default, and commonly used in many distros. You are free to create a dedicated user for samba guest access.
[...]
You are right and I am missing the skills of an admin :-(
Physically it acts as a server, but in reality it is a workstation with an integrated DVD-drive.
Unfortunately, I have severe problems to play a DVD in a remote VLC-session, I can start the DVD and can jump
in the menu between the different options, but each time I click on play the whole film VLC crashes, please see my 2nd post: debug samba / SMB DVD / cdrom share
You are right and I am missing the skills of an admin :-(
Physically it acts as a server, but in reality it is a workstation with an integrated DVD-drive.
Unfortunately, I have severe problems to play a DVD in a remote VLC-session, I can start the DVD and can jump
in the menu between the different options, but each time I click on play the whole film VLC crashes, please see my 2nd post: debug samba / SMB DVD / cdrom share
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.