LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-23-2005, 05:28 AM   #1
deepaklukose
LQ Newbie
 
Registered: Sep 2005
Posts: 15

Rep: Reputation: 0
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
 
Old 09-23-2005, 06:17 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
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
 
Old 09-23-2005, 07:16 AM   #3
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,280

Rep: Reputation: 64
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
 
Old 09-26-2005, 09:13 AM   #4
deepaklukose
LQ Newbie
 
Registered: Sep 2005
Posts: 15

Original Poster
Rep: Reputation: 0
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.
 
Old 09-26-2005, 09:21 AM   #5
deepaklukose
LQ Newbie
 
Registered: Sep 2005
Posts: 15

Original Poster
Rep: Reputation: 0
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.
 
Old 09-26-2005, 12:31 PM   #6
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,280

Rep: Reputation: 64
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.
 
Old 09-28-2005, 10:22 PM   #7
deepaklukose
LQ Newbie
 
Registered: Sep 2005
Posts: 15

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Authentication service cannot retrieve authentication info Moffett67 Linux - Software 3 12-13-2007 03:16 AM
Printing Remotely Echo Kilo Linux - Networking 5 08-31-2005 12:48 PM
Mount a USB remotely DodoFXP Linux - Software 0 07-04-2005 05:30 AM
Rebooting remotely karlovac Linux - Networking 1 04-10-2004 11:59 AM
X remotely linuxnube Linux - General 3 01-26-2004 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration