Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
09-23-2005, 05:28 AM
|
#1
|
LQ Newbie
Registered: Sep 2005
Posts: 15
Rep:
|
Mount remotely with authentication
hai
I need to allow users to mount their home directory(on the server) from client machines.The users must be authenticated.This is needed so that users can use Kate or other editors from client to edit their files but with minimal load on the server.
The server is running Debian sarge 3.1 and clients are running various distros of linux (redhat 9,fc3 ,debian,suse...)
please help me with this problem...
Thanks
|
|
|
09-23-2005, 06:17 AM
|
#2
|
Member
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940
Rep:
|
wellcome to lq...
i assume you have samba running?
i assume the client computers running linux have samba client installed and smbfs?
do the clients have root access to their local machines?
have you had a look the the mount (or smbmount) man page?
try:
mount -t smbfs -o username=<username>,sid,uid=<local_user>,gid=<local_group_of_local_user> //host/share /mount/point
|
|
|
09-23-2005, 07:16 AM
|
#3
|
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 1,280
Rep:
|
Also, on the server end, run smbpasswd for each user and make sure the etc/samba/smb.conf has appropriate lines for the [homes] section - something like:
[homes]
comment = Home Directories
path = /home
read-only = no
|
|
|
09-26-2005, 09:13 AM
|
#4
|
LQ Newbie
Registered: Sep 2005
Posts: 15
Original Poster
Rep:
|
thank you for replying so fast...i have a small problem now....the users have just a guest login in the client machines.so i believe using smbmount they can mount directory.Does smbmount always (ie on linux distros) allow non-root users to mount directories.and how can i get non-root users to use mount.mount says "only root can do that"
Last edited by deepaklukose; 09-26-2005 at 10:22 AM.
|
|
|
09-26-2005, 09:21 AM
|
#5
|
LQ Newbie
Registered: Sep 2005
Posts: 15
Original Poster
Rep:
|
I more question.If allow /home to be mounted then wont user1 be able to modify/view files of user2 assuming both have their home dir /home/userX.Or should i make 2 separate mount points in smb.conf.
how can i sync unix passwds and smb passwds using libpam-smbpass?
Last edited by deepaklukose; 09-26-2005 at 10:19 AM.
|
|
|
09-26-2005, 12:31 PM
|
#6
|
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 1,280
Rep:
|
That's why you set smbpasswd on the server. It's not the same as the user's login password. If a client wants to access his home share on the server he has to type the password set on the server. The directory mounted will only be the one for the user that the password belongs to.
|
|
|
09-28-2005, 10:22 PM
|
#7
|
LQ Newbie
Registered: Sep 2005
Posts: 15
Original Poster
Rep:
|
In debian there is a package libpam-smbpass whose description is as follows:
This is a stackable PAM module that allows a system administrator to easily migrate to using encrypted passwords for Samba and to keep smb passwords in sync with unix passwords. Unlike other solutions, it does this without requiring users to change their existing passwords or login to Samba using cleartext passwords.
Do you know how to use them?So that i can allow users to use their unix passwords to mount their shares.
|
|
|
All times are GMT -5. The time now is 06:27 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|