LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-12-2011, 09:10 AM   #1
ensgr
LQ Newbie
 
Registered: Jan 2011
Posts: 1

Rep: Reputation: 0
Question Linux SAMBA to Share Network HDD with Permissions to Clients


Hello there!

I am very new to the Linux world, I will try to be specific..

In my work I want to build up a Linux based network, where windows and linux clients are going to share a Thecus network drive.
Each client will have specific permissions for accessing the samba shares.

Is this possible? I have installed Ubuntu SRV 10.4 with gui and webmin. What is the best practice for this?

Thanks a lot for your help
 
Old 01-13-2011, 09:38 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Assuming that the network drive shares its data using CIFS/SMB shares, then it should be trivial to mount its shares from any Linux that has cifs drivers. Best practice may depend on the circumstance. If the shares should always be mounted at boot time, then you could put an entry in /etc/fstab, something like:
Code:
//thecushostname/sharename /linux/mount/point cifs uid=linuxuser,gid=linuxgroup,user=thecususer,rw,directio,credentials=/etc/samba/smb.creds 0 0
If the share does not require password authentication, leave out the 'credentials=....' clause. If it does, make the specified file readable only by the respective Linux user, and put the following in it:
Code:
user=IdOfTheThecusUser
password=ThecusUsersPassword
Without the credentials file, the user will have to enter a password, unprompted, during the boot process.

Otherwise, you can simply use the mount command at any time to mount arbitrary CIFS shares to arbitrary mountpoints.

--- rod.
 
  


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
samba share + tracking clients varun_saa Mandriva 1 01-23-2009 04:58 AM
Where do clients get the service name for a Samba share ? stryker_oz Linux - Server 3 12-20-2008 12:07 AM
windows clients cannot see samba share marcbachman Red Hat 2 12-10-2008 06:06 AM
Sharing the samba share with windows clients vignesh2004 LinuxQuestions.org Member Intro 0 06-18-2004 04:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:28 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