Mailinglist Archive: opensuse (5130 mails)
| < Previous | Next > |
Re: [SLE] smb mounts sees all files owned as 'root'
- From: "david rankin" <drankin@xxxxxxxxxxxxxxxx>
- Date: Thu, 4 May 2006 09:50:18 -0500
- Message-id: <008401c66f8a$0fef5170$6207a8c0@rankinp35>
From: "Kevanf1" <kevanf1@xxxxxxxxx>
On 03/05/06, James D. Parra <Jamesp@xxxxxxxxxxxxxxxx> 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
--
| < Previous | Next > |