Operating System - HP-UX
1831424 Members
3142 Online
110025 Solutions
New Discussion

Re: How to replace nfs with cifs ???

 
Frank Gilsdorf
Advisor

How to replace nfs with cifs ???

Hi,

I wan't to replace nfs with cifs. Like I'm understanding the manual I have to do the following:

1. Insert in fstab the line:
server:/homes /homes cifs default

2. mount -aF cifs

3. login as user1

4. Login to server
cifslogin server

5. This works fine!!!
ll /homes shows all files with the right of user1

Now the problem:

1. Second login of user2 (!)

2. login to server
cifslogin server

3. Nothing happens

I expectet to see the files of user2 at mountpoint /homes with his rights.

Who can help me?

Frank
3 REPLIES 3

Re: How to replace nfs with cifs ???

Hi Frank,

The line you have in /etc/fstab looks
ok for mounting a share using CIFS/9000
Client, although normally there is a 0 0
tacked on after default. The way I'm
reading this line you are mounting a share
named homes from a NT/SMB server onto the
unix system under the directory /homes.

Is the server from which the share 'homes' is being mounted a NT server or a SMB server?

On the server that is sharing 'homes' what is the pathname? ie is it a explicit path or is it using a variable, like %u for username?

Are the unix users user1 and user2 using unique NT usernames in their cifslogin commands? Are their unix and nt usernames the same?


-Keith
Frank Gilsdorf
Advisor

Re: How to replace nfs with cifs ???

Hi Keith,

the server is a Samba-2.2.x Server on redhat-linux.

Yes, I'm using the %U statement.

Yes, the usernames are unique.

And I CAN mount. If the first user (i.e. user1) is doing a cifslogin everything is o.k. user1 can read his files in /homes.

But if a second user (i.e. user2) is doing a cifslogin and user1 didn't logout, then user2 can only see the files of user1 in /homes.

Maybe thats not the way like cifs is working but it would be nice.

But how can I mount multiple directories without giving the normal users mount-permission?

Frank

Re: How to replace nfs with cifs ???

Frank,

Interesting configuration, that's kind of what I suspected when I was reading through it. I tried the same setup using Samba 2.0.9 and unfortunately was able to reproduce the same symptoms you are getting. The problem is once the first user accesses the files in the mount the session setup with Samba is done based on that userid, and from that point on unless you force that user off and establish a new session those will be the only files accessible to all the authenticated users. I checked with some of the other engineers who work with CIFS Client and Samba and there are no parameters to have it switch the sessions.

I don't think there is a good solution for you using CIFS Client. The only suggestions we could come up with is to have a single Samba share that points to /home, and have the unix permission such that each user would only be able to access their individual subdirectory under /home. But, they would have to cd into their individual subdirectory, which I'm sure you've already considered. Or you would have to create unique mounts for each user's home directory.

Sorry I couldn't have gotten a way for this
to work. Good luck.

-Keith