Terlson, Adam (STP)
2007-Jul-17 14:28 UTC
[Samba] Getting Owner of Files on Mounted Windows Share
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. Adam
On Tue, Jul 17, 2007 at 08:27:32AM -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?Are you mounting the fs with the root user ? does it change if you mount with another user?> > Thanks in advance. > > Adam > > >> -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba
Terlson, Adam (STP)
2007-Jul-18 13:54 UTC
[Samba] Getting Owner of Files on Mounted Windows Share
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. Adam
Terlson, Adam (STP)
2007-Jul-19 15:19 UTC
[Samba] RE: Getting owner of files on Mounted Windows Share (3rd attempt)
Are people just ignoring my question because I messed something up, not getting it, or does no one know anything? -----Original Message----- From: samba-bounces+adam.terlson=guidant.com@lists.samba.org [mailto:samba-bounces+adam.terlson=guidant.com@lists.samba.org] On Behalf Of Terlson, Adam (STP) Sent: Tuesday, July 17, 2007 8:28 AM To: samba@lists.samba.org Subject: [Samba] Getting Owner of Files on Mounted Windows Share 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 Windows owner of files through a samba-mounted windows file share? Thanks in advance. Adam
Francis Galiegue
2007-Jul-19 15:33 UTC
[Samba] RE: Getting owner of files on Mounted Windows Share (3rd attempt)
Le jeudi 19 juillet 2007, Terlson, Adam (STP) a ?crit?:> Are people just ignoring my question because I messed something up, not > getting it, or does no one know anything? >You had two answers already. -- Francis Galiegue, One2team - fg@one2team.com [ATTENTION : CHANGEMENT DE COORDONN?ES !] +33178945570, +33683877875, http://www.one2team.com 40 avenue Raymond Poincar? - 75116 PARIS
Akemi Yagi
2007-Jul-19 16:27 UTC
[Samba] Re: Getting Owner of Files on Mounted Windows Share
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. > > AdamFirst of all, smbfs has been deprecated. Use cifs instead. For mounting remote Windows shares, refer to this wiki article: http://wiki.centos.org/TipsAndTricks/WindowsShares You answer is also there (see the uid= comment). Akemi