LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 03-16-2011, 11:01 AM   #1
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Rep: Reputation: 34
View owner of file on a windows share


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".
 
Old 03-16-2011, 11:15 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Well,. in Windows, i believe the command was:

Code:
get-acl
and in linux, its:

Code:
getfacl
 
1 members found this post helpful.
Old 03-16-2011, 11:48 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 03-17-2011, 04:22 AM   #4
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Original Poster
Rep: Reputation: 34
It is mounted with "cifs" but still says root owns everything. getfacl shows root owns everything too.

The Linux computer is not integrated with the Windows system, it is simply plugged into the same network.

What I have done is mounted a shared drive (with the Windows administrator account) on the Linux computer.

Thanks

Last edited by jsteel; 03-17-2011 at 04:23 AM.
 
Old 03-18-2011, 08:13 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to view fedora 14 file-system in windows ? linuxwhacko Fedora 1 02-02-2011 01:15 AM
Owner of a directory different than file owner problems Guardian-Mage Linux - Server 4 04-24-2009 10:26 AM
Is there way to share/view files with local windows partition??? stees Linux - Newbie 16 05-03-2006 02:28 PM
W2K cannot view samba share but can view NT FiveFlat Linux - Software 3 06-10-2005 02:54 PM
cant view files on windows share Pete Dogg Linux - Software 3 10-22-2003 09:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration