smbfs mounted files created owned by root?

Mark E. Drummond drummond-m at rmc.ca
Tue Sep 14 19:14:11 GMT 1999


"Peter J. Holzer" wrote:
> 
> As far as I can tell, this seems to work. I can choose any user on the
> client (if I am root on the client) and I can choose those users of the
> server, whose password I know (I.e., I can connect as root, but then I
> need the root password on the server).

What I am getting is, I connect as 'myself' (using my network account)
but any files I create on the mounted share, while they look like they
are owned by me on the client, if I go to the server the files are
actually created owned by root:

On the client:

signals:~/tmp/updts$ ls -l
total 27750
-rwxr-x---   1 fizban   users     2355976 Sep 13 13:15 MSDUN13.EXE*
-rwxr-x---   1 fizban   users     1634256 Sep 13 13:17 NM30.EXE*
-rwxr-x---   1 fizban   users       57120 Sep 13 12:51 W95KRNLTOYS.EXE*
-rwxr-x---   1 fizban   users      337016 Sep 13 12:59 W95KRNLUPD.EXE*
-rwxr-x---   1 fizban   users      209241 Sep 13 12:52 W95powertoy.exe*
-rwxr-x---   1 fizban   users      986400 Sep 13 12:59 W95ws2setup.exe*
-rwxr-x---   1 fizban   users    15825503 Sep 13 13:24 cc32d461.exe*
-rwxr-x---   1 fizban   users     7006496 Sep 13 12:59 dx61eng.exe*
-rwxr-x---   1 fizban   users           0 Sep 13 15:43 file2*
-rwxr-x---   1 fizban   users           0 Sep 13 14:21 testfile*
signals:~/tmp/updts$ 

On the server:
drummonm at sol1 $ ls -l
total 55664
-rw-r-----   1 root     cs       2355976 Sep 13 13:15 MSDUN13.EXE
-rw-r-----   1 root     cs       1634256 Sep 13 13:17 NM30.EXE
-rw-r-----   1 root     cs         57120 Sep 13 12:51 W95KRNLTOYS.EXE
-rw-r-----   1 root     cs        337016 Sep 13 12:59 W95KRNLUPD.EXE
-rw-r-----   1 root     cs        209241 Sep 13 12:52 W95powertoy.exe
-rw-r-----   1 root     cs        986400 Sep 13 12:59 W95ws2setup.exe
-rw-r-----   1 root     cs       15825503 Sep 13 13:24 cc32d461.exe
-rw-r-----   1 root     cs       7006496 Sep 13 12:59 dx61eng.exe
-rw-r-----   1 root     cs             0 Sep 13 15:43 file2
-rw-r-----   1 root     cs             0 Sep 13 14:21 testfile
drummonm at sol1 $ 

Moreover, I _cannot_ mount/unmount as a normal user unless smbmnt (not
smbmount) and smbumount are SUID root:

signals:~$ smbmount //sol1/drummonm ./tmp -U drummonm
Added interface ip=137.94.5.88 bcast=137.94.15.255 nmask=255.255.240.0
smbmnt must be installed suid root
mount failed
signals:~$ 

signals:~$ smbumount ./mnt
smbumount must be installed suid root
signals:~$ 

-- 
Mark E Drummond
mdrmmond at kos.net


More information about the samba mailing list