HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to replace nfs with cifs ???
Operating System - HP-UX
1831374
Members
3471
Online
110025
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 06:24 AM
01-17-2002 06:24 AM
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2002 04:50 AM
02-07-2002 04:50 AM
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2002 05:12 AM
02-07-2002 05:12 AM
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2002 09:33 AM
02-07-2002 09:33 AM
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
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
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP