SlackwareThis Forum is for the discussion of Slackware Linux.
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.
[matty-home]
comment = Matty's home folder
path = /home/matty
valid users = matty
# public = no
writeable = yes
[matty]
comment = Matty's data folder
path = /maxtor/matty
valid users = matty
# public = no
writeable = yes
The first folder resides on a reiserfs formatted partition and the second on an ext3 formatted one.
In the fisrt case, I have to enter User name and password to gain access... in the latter, I can enter anything as username as long as I have the right password.
yesterday i was lookin around and remember seeing something about not requireing a login, and being able to adjust different settings for different groups. it was either on the desptop -> right click -> and properties and very right tab or
in the menu/settings ...
sorry i can't be very specfific but still real new. heop that helps a bit
Even weirder...
If I enter a bogus username and the right password to mount the ext3 share, then I can do the same for the reiser share.
On the other hand, if I try to mount the reiser share first, then I have to have the right username and password, but I can still mount the ext3 share with bogus username and right password.
Is this a bug in samba or bad configuration on my part?
I don't think it's either - Samba is caching your password and searching the system for a username to use with it (so it's not filesystem related). There's more info at Samba Security Modes - the section about share level security talks about matching passwords to usernames.
You shouldn't need to share the home dir for the user as this is done by the [homes] share, it identifies the user and gives it access his own home dir.
In the second case only the user matty should be able to connect to that share, check your smb.conf to see if you have samba acting as a public server, run the following command on the command line: testparm -vvv. This will give you a list of all the configurable items of samba and their actual value.
I changed things so that the home directory is shared through homes and renamed the other share "matty-docs" and things seem to work fine now...
I was (and still am) using share security level. Now however, I must enter the right username when mounting the ext3 share.
I guess my original problem wasn't really due to the file system but probably because there was some kind of conflict in the way I was sharing homes, the home folder (incorrectly), and a data directory named after the username.
I think if you use user level security that won't happen...
Ya, I think you're right... but I don't want to bother with that. I find it inconvenient to have to provide credentials just to browse the shares list. With security = share I can still password protect rw shares and have public ro shares, which suits my needs.
This is my setup for a home network behind a router, so I think I'm relatively safe. I have a strong password + wpa2 protecting wireless access to the router...
[share]
comment = I guess you b puttin someting here
path = /somewhere/interesting
public = yes
guest ok = yes
With a guest ok you can enter the share without credentials
Oh make sure theres a global parameter saying guest account = nobody (check syntax cause I'm on windows and can't right now)
[share]
comment = I guess you b puttin someting here
path = /somewhere/interesting
public = yes
guest ok = yes
With a guest ok you can enter the share without credentials
Oh make sure theres a global parameter saying guest account = nobody (check syntax cause I'm on windows and can't right now)
Thanks Mr. C.
I tried what you said but it doesn't work for me. I need smb4k to be able to list public shares. If I set
Code:
security = user
, my samba server insists on receiving credentials before displaying shares.
PS: I did make sure that I have
Code:
guest account = nobody
Last edited by mattydee; 12-03-2007 at 12:38 PM.
Reason: PS
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.