LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 07-08-2007, 09:14 AM   #1
licht
Member
 
Registered: Mar 2005
Location: chicago
Distribution: red hat 9.0
Posts: 59

Rep: Reputation: 15
Use shared network folders when users logon?


It is common in M$ WINDOWS to allocate folders on a file server for DOMAIN users in a network. So, when a user logs into this DOMAIN, his or her folder on the server will most probably be mapped to a local drive for use.

Now, I'm thinking how this can be implemented in a network that each machine is an opensuse box. Suppose there is a file server "FS", shared folder on "FS" is "/network" so each user can have a separate subfolder. Also suppose there is a machine "TESTING" and a local user "peter" on "TESTING" and his home folder on "TESTING" is "/home/peter".

I suppose one way to support using this shared folder on "FS" is this: Create a folder "/network/peter" for "perter" on "FS"; when "peter" logs on machine "TESTING", the folder "network/peter" on "FS" will be mounted as "/home/peter/FS". In addition, consider "peter" will never feel comfortable with command-line, we need to create something like a local drive icon like in windows for him to click to open the folder and do things like browse, save and open files, etc.

So, I have the following two questions:

1. How to mount a user's network folder on a server (S.A. "FS") to his local system when he logs on?

2. How to create a GUI icon (sth I cannot figure out) for using this folder on user's local x-window system?

Thanks!

Last edited by licht; 07-08-2007 at 09:17 AM.
 
Old 07-08-2007, 01:03 PM   #2
onjoo
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Suse 10, Suse-factory , RHEL4, SLES9, SLED10
Posts: 380

Rep: Reputation: 30
That can be done with NFS.

Make the centralized server a NFS-server. Export the directories needed from the server.
Shares can be configured with read or write or both enabled.

On client add the nfs-share to /etc/fstab so that the network shares will be automatically be mounted on boot.
You can also add custom scripts to /home/user/.bash_profile which will be started on logon.

Try googling with words : NFS share , fstab, mount
 
Old 07-08-2007, 09:15 PM   #3
licht
Member
 
Registered: Mar 2005
Location: chicago
Distribution: red hat 9.0
Posts: 59

Original Poster
Rep: Reputation: 15
Thanks, onjoo.

Can this work with LDAP and Samba? I have no idea what role the latter two can play in this scenario. Maybe manage user info s.a. authentication and authorization? Any thoughts or suggestions?
 
Old 07-09-2007, 01:51 AM   #4
onjoo
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Suse 10, Suse-factory , RHEL4, SLES9, SLED10
Posts: 380

Rep: Reputation: 30
Quote:
Originally Posted by licht
Can this work with LDAP and Samba? '
SAMBA can fit in the puzzle same way as NFS. You make a SAMBA share on a server and mount it automatically on boot (add the smbmount to /etc/fstab) .

Thats something like an replacement for NFS if you need to allow Windows users to access the same "folders". Or you can also offer the directory as NFS share for linux users and as samba share for windows users.

The directories you want to share can be protected. You just modify the group right, and make sure the users are member of the group in LDAP .
 
Old 07-09-2007, 11:06 AM   #5
licht
Member
 
Registered: Mar 2005
Location: chicago
Distribution: red hat 9.0
Posts: 59

Original Poster
Rep: Reputation: 15
Thanks! Words really carry knowledge.

So, as I can understand, the following is the steps (logically) to follow:

- on file server, enable both SAMBA and NFS. For any folder to be shared, set it so in SAMBA (for windows clients) and NFS (for linux clients).

- on linux client machine, mount shared network root folder at boot. but since we have to mount each home folder on file server for each user, we need to mount this network home folder in local /home/user/.bash_profile.

- on windows client, it can be set up as usual.

Still one question:

1. can SAMBA be used for both linux and windows clients so only SAMBA needs to be enabled on file server w/o NFS?
 
  


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
Shared Folders dudeman41465 Linux - Security 1 06-28-2005 06:38 PM
Map network for shared folders. :King_58: Linux - Newbie 2 09-26-2004 02:41 PM
Connect to shared network printer on WinXP machine for all users (Slackware) a1flecke Linux - Newbie 12 05-03-2004 07:27 PM
Mounting Windows NT shared folders for individual users Jake_da_Snake Linux - Networking 6 02-28-2004 02:12 AM
viewing network computers and shared folders dpbatagoda Linux - Newbie 1 12-05-2003 04:08 AM


All times are GMT -5. The time now is 05:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration