Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Originally posted by jcookeman So you can't make this one user the user/owner of the directory?
I can but it doesn't work, it is seem that the samba doesn't know who is the user that can modified or not.
When you connect from windoze, samba will treat all of the user as read only users.
i have thinking, can we make samba prompt a username and passwd when the windoze user tried to access that directory, so when the windoze user give the user name and passwd, samba will autheticated it whther this user have the rights to change the content of the directory or not, do you have any idea how to do that ? or maybe other solutions will be help too ?
If you set security=user in the smb.conf file then it should prompt you for a username and password, and then you can set permissions after you add the users to samba with smbpasswd -a.
If this works then you can mess with permissions and the different directives like valid users and create mask.
yea, i also have tried it and it is prompt a passwd when we try to access that folder but i don't know what is the passwd that should given becoz i had given all of the paswd i know and it still rejected.
Well then you are going to have to check your /var/log/log.smb and see what is going on with those users. You probably have a UID mismatch or something.
do you any other solution instead of using samba to share the directory which only browseable by 4 users and only one of the 4 user had the read write rights?
Yes, setting up directories with group permissions will accomplish what you want it to. The problem you are having if I understand you correctly is getting authenticated on the machine. If you are getting a password prompt when you try to access the Samba shares than the problem has to be with the /etc/passwd or smbpasswd file. It should not let you create a Samba account without there being a match on the local machine first.
I have had problems in the past where I set the local account by useradd -p. Try doing passwd [user] and reset locally the do the same on samba by smbpasswd [user]. That should do the trick
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.