Solved

SAMBA shares access from linux workstations

Posted on 2004-04-03
3
337 Views
Last Modified: 2010-03-18
We have a corporative Redhat 9 server using samba .

We need to configure some Linux workstations that can connect to samba shares in the server , but those shares are differents depending on the user who logged in.
I try to use mount -t smbfs but i says "only root can mount"

Is there any option to use the users and password stored in the server and do not create linux users in the workstations ?
0
Comment
Question by:diordonez
3 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 10749169
It would be better to enable NFS on the Samba server and mount volumes as needed on the Linux workstations. To avoid the need for root access to execute the mounts and the possibility of deadlocks from mounts in /etc/fstab you could set up either of the Linux automounters (autofs or amd) and have NFS mounts/unmouts done on demand. Note that to use NFS, which is going to be more efficient and faster than SMB shares, the UID/GID of users on the workstations must be the same as those accounts on the Samba server. For only a few Linux workstations this can be done manually, but for a larger number (say more than 5-10) NIS is the way to go.
0
 
LVL 2

Accepted Solution

by:
PaulS_III earned 125 total points
ID: 10768347
I agree with jlevie. Samba is more for allowing windows and linux to share files with each other. Inotherwords, you would use Samba to allow a windows box to have access to shares on a linux box.

For linux-to-linux Simply use NFS.  The way to do this is to edit the /etc/exports file and add an entry that looks something similar to the followinf:

/some_fs_name       some_workstaion_name(rw,insecure,no_root_squash,sync)

What we are doing here is exposing the filesystem to a particular workstation, for instance:
export /tmp to rhwork1 would be :

/tmp      rhwork1(rw,insecure,no_root_squash,sync).

You will need to repeat this for each workstation you want /tmp to be accessed by (You could script this to add a larger number of workstations)

When you have all the exports define save your changes, then at the command prompt issue the comand:

exportfs -ar

this will then expose the exported file systems and allow your workstations to connect.

At this point in time, you could add a hard mount by altering the /etc/mtab files on each workstation or as suggested above setup automounts for these.

Hope this helps

Paul
0
 

Author Comment

by:diordonez
ID: 10894022
Thanks a lot for your help !!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
what is the size of a TCP segment 10 82
Help with Ubuntu 14.04 LTS 10 123
LDAP setup? 9 82
dns master and slave in linux 2 62
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now