Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm interested in viewing the owners of files on a Windows Server 2003 share (mounted on a Linux computer). These "owners" would be users in Active Directory. If it's not possible to see the username, I wonder if it will at least show a unique identifier.
Currently it says all files are owned by root with an "ls -l".
Does the server support the CIFS extensions? If so, you should see the ownership using the `cifs' filesystem to mount the share.
A server may be configured to map bad users to guest. But since the owner is root, it sounds like the server doesn't support cifs extensions, in which case the files and directories will have the same owner determined by mount command.
I asked if the server supports cifs, not the client.
From the man page for "mount.cifs":
Quote:
uid=arg
sets the uid that will own all files or directories on the mounted filesystem when the server does not provide ownership information. It may be
specified as either a username or a numeric uid. When not specified, the default is uid 0. The mount.cifs helper must be at version 1.10 or higher to
support specifying the uid in non-numeric form. See the section on FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS below for more information.
If the server doesn't support the cifs extensions, then the cifs driver will revert to smbfs behavior. You will need to use the uid=, gid=, file_mode= and dir_mode= options to change the ownership of all files and all directories on the mounted share.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.