RE: [SLE] smb mounts sees all files owned as 'root'
Hello,
Is there a way to have smb mounts show who the actually file owners are instead of having all files appearing to be owned by user root?
Windows file systems do not have the concept of owner, group, and others as well as rwx, etc. The file attributes under Windows are quite different. Well that is interesting, because from a windows box it correctly displays the owner of the file (under Properties/Security tab). The smb export is on a Linux server. The files were created from the Linux box over the smb mount hosted on a Linux server. From a windows box, the files show the actual owner of the files. The Linux server also show the actual owner, while the Linux client shows the files being owned by root. It is very odd. There must be a way to mount an smb mount point and have it show the true owners of the files. Regards, ~James
On 03/05/06, James D. Parra
Hello,
Is there a way to have smb mounts show who the actually file owners are instead of having all files appearing to be owned by user root?
Windows file systems do not have the concept of owner, group, and others as well as rwx, etc. The file attributes under Windows are quite different.
Well that is interesting, because from a windows box it correctly displays the owner of the file (under Properties/Security tab). The smb export is on a Linux server. The files were created from the Linux box over the smb mount hosted on a Linux server. From a windows box, the files show the actual owner of the files. The Linux server also show the actual owner, while the Linux client shows the files being owned by root. It is very odd. There must be a way to mount an smb mount point and have it show the true owners of the files.
Regards,
~James
In Windows (NTFS systems) it's not so much 'owner, group and other' more a case of actual accessibility. There is a system of groups in the NTFS system but they are too free with given permissions. Unlike Linux (and Unix) where one user can be given certain access rights to a specific area quite easily, in NTFS that user tends to be given a load more access unintentionally. Access that is not needed and is potentially dangerous. Which is why the NTFS system is nowhere near as secure as the Linux/Unix system. -- ============================================== I am only human, please forgive me if I make a mistake it is not deliberate. ============================================== PLEASE DON'T drink and drive it's not clever, it's just stupid. Kevan Farmer Linux user #373362 Cheslyn Hay Staffordshire WS6 7HR
From: "Kevanf1"
On 03/05/06, James D. Parra wrote: Hello,
Is there a way to have smb mounts show who the actually file owners are instead of having all files appearing to be owned by user root?
Windows file systems do not have the concept of owner, group, and others as well as rwx, etc. The file attributes under Windows are quite different.
Well that is interesting, because from a windows box it correctly displays the owner of the file (under Properties/Security tab). The smb export is on a Linux server. The files were created from the Linux box over the smb mount hosted on a Linux server. From a windows box, the files show the actual owner of the files. The Linux server also show the actual owner, while the Linux client shows the files being owned by root. It is very odd. There must be a way to mount an smb mount point and have it show the true owners of the files.
Regards,
~James
In Windows (NTFS systems) it's not so much 'owner, group and other' more a case of actual accessibility. There is a system of groups in the NTFS system but they are too free with given permissions. Unlike Linux (and Unix) where one user can be given certain access rights to a specific area quite easily, in NTFS that user tends to be given a load more access unintentionally. Access that is not needed and is potentially dangerous. Which is why the NTFS system is nowhere near as secure as the Linux/Unix system.
Dunno if this will help, but man smbmount: SYNOPSIS smbmount {service} {mount-point} [-o options] OPTIONS username=<arg> specifies the username to connect as. If this is not given, then the environment variable USER is used. This option can also take the form "user%password" or "user/workgroup" or "user/work- group%password" to allow the password and workgroup to be speci- fied as part of the username. IIRC smbmount, mounts the windows share as the user specified, otherwise it uses the environment variable $USER. If the smbmount command is issued as root then all files on the mounted share are shown as being owned by root:root. I don't know for certian, but I don't think you can smbmount a windows share on a linux box and then use something like ls -al to determine the windows owner of the file. If somebody else knows different, please feel free to enlighten me without flames.... -- David C. Rankin, J.D., P.E. RANKIN LAW FIRM, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 (936) 715-9333 (936) 715-9339 fax www.rankinlawfirm.com --
On May 03, 2006 10:28 PM, James D. Parra wrote:
Hello,
Is there a way to have smb mounts show who the actually file owners are instead of having all files appearing to be owned by user root?
Windows file systems do not have the concept of owner, group, and others as well as rwx, etc. The file attributes under Windows are quite different.
Well that is interesting, because from a windows box it correctly displays the owner of the file (under Properties/Security tab). The smb export is on a Linux server. The files were created from the Linux box over the smb mount hosted on a Linux server. From a windows box, the files show the actual owner of the files. The Linux server also show the actual owner, while the Linux client shows the files being owned by root. It is very odd. There must be a way to mount an smb mount point and have it show the true owners of the files.
Do you have a Windows domain? Is the Linux server joined to that domain? Where is authentication done?
participants (4)
-
david rankin
-
James D. Parra
-
Kevanf1
-
Silviu Marin-Caea