- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: CIFS file group:owner list
Operating System - HP-UX
1748252
Members
3970
Online
108760
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
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
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-27-2009 08:07 PM
01-27-2009 08:07 PM
CIFS file group:owner list
Hi Guys!
I have this one somewhat 'buggy' thing on CIFS.
Background: I was able to mount the windows share directory on my HPUX11.11 server using "cifsmount" and activated guestRemoteUser/guestPassword to allow non-root users to use the CIFS mountpoint.
The problem is when I login as and do an "ls -l" as user1, all the files in the / have the user/group as user1:group1; this same behaviour is also observed whether I use user2, user3, and so on..
Got any ideas what I need to do about this?
TIA!
I have this one somewhat 'buggy' thing on CIFS.
Background: I was able to mount the windows share directory on my HPUX11.11 server using "cifsmount" and activated guestRemoteUser/guestPassword to allow non-root users to use the CIFS mountpoint.
The problem is when I login as and do an "ls -l" as user1, all the files in the /
Got any ideas what I need to do about this?
TIA!
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2009 05:44 PM
01-28-2009 05:44 PM
Re: CIFS file group:owner list
First, are you sure you want to use the guest-user feature? It is rather more secure for the unix users to use cifslogin to authenticate as themselves to the windows server. Of course, this necessitates that each unix user have an account on the windows server, because they can authenticate to windows only with the windows account name and password. See cifslogin(1) and the CIFS Client Admin Guide for more info on this.
Regarding the "buggy" behavior you observe, this is an unavoidable problem due to the basic incompatibility of the windows and unix filesystems. File owners and groups are stored as numbers on the two systems, and there's no way to ensure that the numbers coincide. So the CIFS Client, when returning the results of the dir listing, tells a reasonable lie, giving simply the uid and gid of the user who issued the 'ls'. The same is true for directory sizes: they will always be the same (faked) value, and in fact you can configure the value. This is because while there is a directory size in the unix filesystem, there is no such concept in the windows fs.
Now there is a workaround. If the server is not windows but some distribution of Samba (for example the HP-UX CIFS Server, or any Linux system), then you can enable the "CIFS Unix Extensions" on both the client and server. Then file owners and groups will be reported accurately. I am not sure about directory size though; there was some bug in this and I don't know if is has been resolved.
-Eric
Regarding the "buggy" behavior you observe, this is an unavoidable problem due to the basic incompatibility of the windows and unix filesystems. File owners and groups are stored as numbers on the two systems, and there's no way to ensure that the numbers coincide. So the CIFS Client, when returning the results of the dir listing, tells a reasonable lie, giving simply the uid and gid of the user who issued the 'ls'. The same is true for directory sizes: they will always be the same (faked) value, and in fact you can configure the value. This is because while there is a directory size in the unix filesystem, there is no such concept in the windows fs.
Now there is a workaround. If the server is not windows but some distribution of Samba (for example the HP-UX CIFS Server, or any Linux system), then you can enable the "CIFS Unix Extensions" on both the client and server. Then file owners and groups will be reported accurately. I am not sure about directory size though; there was some bug in this and I don't know if is has been resolved.
-Eric
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP