[Samba] Re: Getting Owner of Files on Mounted Windows Share
amyagi at gmail.com
Thu Jul 19 16:27:09 GMT 2007
On Tue, 17 Jul 2007 08:27:32 -0500, Terlson, Adam (STP) wrote:
> Hello everyone,
> I have an obscure issue that I have been so far unable to find the answer
> to. I have successfully mounted a windows NTFS file share using samba via
> the following command:
> mount -t smbfs -o username=<USERNAME>,workgroup=<WORKGROUP>
> //winserver/winpath /mnt/win
> It mounts just fine but performing an ls -al command shows my user (or
> "root") as the owner of all files, when this isn't the case. Is it
> possible to get the proper owner of files through a samba-mounted windows
> file share?
> Thanks in advance.
First of all, smbfs has been deprecated. Use cifs instead. For mounting
remote Windows shares, refer to this wiki article:
You answer is also there (see the uid= comment).
More information about the samba