Solved

SAMBA shares access from linux workstations

Posted on 2004-04-03
3
339 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

815 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

8 Experts available now in Live!

Get 1:1 Help Now