Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

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.

Introduction to Linux - A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

Hi to all again, this is my second problem.
I've installed a Linux Ubuntu Server in my company and I've stored in separate folders the files of my emplojees that, of course, don't have a user in that machine.
The list of the users are in a MySql folder and the password are crypted with the PASSWORD() option of mysql.
I've activated with success the ftp service using PAM authentication and I would like do the same with samba.
I've tryed one month reading a lot of HowTo, posts, linux-guru, etc. but I'm still having the same result: no way!
My goal will be to share all the folders but I want every user could log only in his personal folder.
I'm really stressed about that! :-)
Could anyone help me please with some working examples?
Thanks anyway for interesting. Enrico

How many users is this for? How do they authenticate now? There is a mysqlsam backend mentioned in &quot;Samba-3 Official HOWTO & Reference Guide&quot; but no further information on it that I could find in the book. I'd recommend that book and &quot;Samba-3 by Example&quot;. They are available in the book stores, or you can download the pdfs from the Samba website. Also, most distro's have a `samba-doc' package that has these two books.

I don't think you are approaching this the correct way. There are different password backends for samba. They contain more information than the the username and encrypted password. You can use the smbpasswd command to add users & passwords. There is also a tdbsam database which you might want to use for over 20 users. Or you can use ldap or AD to handle authentication. The two books I mentioned have step by step instructions, including setting up the directories to share, and their permissions.

A samba user needs to be a Linux user as well. A user will have a UID on Linux as well. That is what the Linux permission system is based on.

The profile share will show up as profiles in explorer. When a user clicks on it, they will need to authenticate if they haven't started a session. When they do, they will see their own share. The other users shares don't even show up.

The `users' share will show up as `users' in explorer. When a user opens it, they will see a share by all of the users and will need to locate their own share and open it. Access to the other shares depends on the permissions of each users home directory.

They don't authenticate. I would they do it when they will be trying to access to their folder on the server.

Quote:

Originally Posted by jschiwal

There is a mysqlsam backend mentioned in &quot;Samba-3 Official HOWTO & Reference Guide&quot; but no further information on it that I could find in the book. I'd recommend that book and &quot;Samba-3 by Example&quot;. They are available in the book stores, or you can download the pdfs from the Samba website. Also, most distro's have a `samba-doc' package that has these two books.
I don't think you are approaching this the correct way. There are different password backends for samba. They contain more information than the the username and encrypted password. You can use the smbpasswd command to add users & passwords. There is also a tdbsam database which you might want to use for over 20 users. Or you can use ldap or AD to handle authentication. The two books I mentioned have step by step instructions, including setting up the directories to share, and their permissions.

I would use the mysql archive of usernames and password because I'm using that for a lot of other procedures like FTP access, internal website access, working hour count, etc.

Quote:

Originally Posted by jschiwal

A samba user needs to be a Linux user as well. A user will have a UID on Linux as well. That is what the Linux permission system is based on.

And that is what I really don't want. My users don't have to be server users but just authenticate from a database.
I have a NAS of Buffalo Technology that does exactly that. I've searched the specifications and I've seen that it uses linux inside for authentications. I can use it as FTP and as Samba with just one declaration of user and passw. So I would to recreate the same condition on mu ubuntu server.

The profile share will show up as profiles in explorer. When a user clicks on it, they will need to authenticate if they haven't started a session. When they do, they will see their own share. The other users shares don't even show up.

The `users' share will show up as `users' in explorer. When a user opens it, they will see a share by all of the users and will need to locate their own share and open it. Access to the other shares depends on the permissions of each users home directory.

And this is exactly what I want but how can I say to the server to authenticate the user from a users list stored in a mysql database?

This is my actually samba.conf file if could be useful (now I've shared all the folders but that situation doesn't make me really happy)..