LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-20-2013, 03:13 PM   #1
mati-92
Member
 
Registered: May 2011
Location: united kingdom
Distribution: ubuntu/debian server and centos/fedora server
Posts: 39

Rep: Reputation: 0
multiple file shares on ubunutu server 12.04


hi there i am newish at Ubuntu server i have in the past set up a file share on Ubuntu for the community centre i work at.
how would i go about setting up multiple shares on one ubuntu server box for different people.

example

there are 4 main users of the network at work

Matthew
Michael
Pam
Andrew

i would like a share for each of the names above how would i do this

cheers

appreciate the help

mati
 
Old 01-20-2013, 03:31 PM   #2
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,019

Rep: Reputation: 67
I am new to this myself, and probably will be of limited value here, but I would imagine there might be two options:
1) Create an NFS share. I am not at all sure, but I expect you might need user accounts corresponding to each of those users on the machine that is doing the sharing. You could set file RWX permissions to each user in each directory accordingly. Not at all certain about this.

2 Share the folders via samba? I believe samba can be configured to require username/password.

Sorry I cannot be of more assistance.
 
Old 01-20-2013, 03:53 PM   #3
mati-92
Member
 
Registered: May 2011
Location: united kingdom
Distribution: ubuntu/debian server and centos/fedora server
Posts: 39

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sneakyimp View Post
I am new to this myself, and probably will be of limited value here, but I would imagine there might be two options:
1) Create an NFS share. I am not at all sure, but I expect you might need user accounts corresponding to each of those users on the machine that is doing the sharing. You could set file RWX permissions to each user in each directory accordingly. Not at all certain about this.

2 Share the folders via samba? I believe samba can be configured to require username/password.

Sorry I cannot be of more assistance.
hi there i normally do my file share via samba using the command vi /etc/samba/smb.conf i edit that file adding a share to that and then setting the permissions on there aswell

but now im looking at having multiple share locations on one Server

mati
 
Old 01-20-2013, 04:15 PM   #4
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,019

Rep: Reputation: 67
Although the english is bad, there seems to be some useful info here. There's also some useful info in this document under "controlling access to shares". I
 
1 members found this post helpful.
Old 01-20-2013, 05:21 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
If the users may use windows, then use Samba.

Install the samba-doc package. It includes an excellent book "Samba 3 by Example". It will walk you through setting up samba step by step including creating the directories to share. Some steps may be missed in some blog posts such as using smbpasswd to add samba users in the database. This book may also be downloaded from the samba.org website.

A share definition can include variables, so you don't have to define a share for each user. The initial /etc/samba/smb.conf may include such a commented out share where you just need to uncomment some lines. Look for the one called HOMES.

Last edited by jschiwal; 01-20-2013 at 05:22 PM.
 
Old 01-21-2013, 02:51 AM   #6
mati-92
Member
 
Registered: May 2011
Location: united kingdom
Distribution: ubuntu/debian server and centos/fedora server
Posts: 39

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jschiwal View Post
If the users may use windows, then use Samba.

Install the samba-doc package. It includes an excellent book "Samba 3 by Example". It will walk you through setting up samba step by step including creating the directories to share. Some steps may be missed in some blog posts such as using smbpasswd to add samba users in the database. This book may also be downloaded from the samba.org website.

A share definition can include variables, so you don't have to define a share for each user. The initial /etc/samba/smb.conf may include such a commented out share where you just need to uncomment some lines. Look for the one called HOMES.
using the home directories would that be setting up a domain controller ?

mati
 
Old 01-21-2013, 03:57 AM   #7
mati-92
Member
 
Registered: May 2011
Location: united kingdom
Distribution: ubuntu/debian server and centos/fedora server
Posts: 39

Original Poster
Rep: Reputation: 0
im struggling with 12.04 getting a basic share setup now why is this not working i have added an smb user. created the share on the smb.conf and still not allowing me to connect
 
Old 01-21-2013, 05:09 PM   #8
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,120

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
have you considered using sshfs on the cllients ? this would have the added bonus of using regular ssh connections to make it seem as if the remote directory is local (since most systems have ssh pre-installed, theres no extra cruft you have to install or administer).
 
  


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
Mounting multiple NFS or Samba shares: client-side or server-side? mariogiov Linux - Server 4 04-03-2012 08:11 AM
how to transfer multiple file to multiple server using public and private key sampadray81 Linux - Newbie 5 02-27-2012 12:31 PM
Pug Server Linux file server no longer shares drive to Windows DMT Linux - Networking 6 11-19-2009 02:21 PM
whats the deal with ubunutu 9.10 shares on ntfs disk yhabani Linux - Software 5 11-14-2009 11:24 PM
Multiple File server on Webserver RJL Linux - Software 3 01-01-2005 10:27 AM


All times are GMT -5. The time now is 06:07 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration