Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

Samba and file ownership

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Windows - UNIX Interop] >> System & Network Admin Forum >> Samba and file ownership Page: [1]
Login
Message << Older Topic   Newer Topic >>
Samba and file ownership - Aug. 27, '03, 10:38:48 AM   
Ron

 

Posts: 77
Joined: May 21, '03,
Status: offline
I have set up Samba 2.2.8a on a SCO Openserver system and have set up a couple of shares. I have set the security = Domain and have made it a member of our domain.

When I telnet to the SFU server I can cd to the share without any problem but when I do a directory listing, the file ownership information is all numeric and does not show the username. Yet if I access the same share from a Win2000 session, and right click to look at the file permissions, I can see the correct usernames.

For example:
drwxr-xr-x 21 1201 1201 0 Jun 10 15:14 ./
drwxr-xr-x 1 1000 1007 0 Aug 14 14:35 ../
drwx------ 1 3628 1201 0 Aug 6 14:59 abourdon/

Should be:
drwxr-xr-x 21 root users 4096 Jun 10 15:14 ./
drwxr-xr-x 19 root sys 512 Aug 14 14:35 ../
drwx------ 2 abourdon users 512 Aug 6 14:59 abourdon/

Regards,
Ron
Post #: 1
RE: Samba and file ownership - Aug. 27, '03, 10:53:24 AM   
mark

 

Posts: 17
Joined: Nov. 28, '02,
Status: offline
This is probably a problem with Samba. The Interix subsystem makes NT kernel calls differently from the Windows subsystem and thus NT could be generating SMB requests different from what Samba is expecting.
Since Samba is reverse engineered from looking at Windows behaviour it may not know how to handle valid SMB requests generated by the Interix subsystem.

Can you give some more specific information ? For instance, in your example directory, can you provide the output from " ls -l" and " dir /q" when using the telnet session. And are you using the Windows telnet server or the Interix telnet server ?

_____________________________

This posting is provided " AS IS" with no warranties, and confers no rights.

(in reply to Ron)
Post #: 2
RE: Samba and file ownership - Aug. 27, '03, 11:11:58 AM   
Ron

 

Posts: 77
Joined: May 21, '03,
Status: offline
Hmm I see. I' m using the Interix telnet server.


RMacNeil:/net/dev1/u/users:11$ ls -l
total 21
drwx------ 1 1201 1201 0 Aug 6 14:59 abourdon


RMacNeil:/net/dev1/u/users:12$ dir /q
' \\dev1\u\users'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
Volume in drive C has no label.
Volume Serial Number is AC67-5872

Directory of C:\WINDOWS

08/14/2003 01:38 PM <DIR> BUILTIN\Administrators .
08/14/2003 01:38 PM <DIR> BUILTIN\Administrators ..
08/26/2003 03:09 PM 0 BUILTIN\Administrators 0.log
06/16/2003 11:29 AM 3,848 BUILTIN\Administrators actsetup.log
06/06/2003 07:11 AM <DIR> BUILTIN\Administrators addins
...etc...

(in reply to Ron)
Post #: 3
RE: Samba and file ownership - Aug. 27, '03, 11:59:14 AM   
mark

 

Posts: 17
Joined: Nov. 28, '02,
Status: offline
to get a " dir" listing of /net/dev1/u/users you' ll need to mount this share to a drive letter, chdir there and then execute ' dir /q' again.

_____________________________

This posting is provided " AS IS" with no warranties, and confers no rights.

(in reply to Ron)
Post #: 4
RE: Samba and file ownership - Aug. 27, '03, 1:41:37 PM   
Ron

 

Posts: 77
Joined: May 21, '03,
Status: offline
The plot thickens...

Seems this issue may not have anything to do with Interix but rather an issue with Win2003 and Samba. Now unfortunately I don' t have SFU installed on a win2000 system so that I can test this fully.

On Win2000 Pro the directory is correctly displayed:
Z:\>dir /q
Volume in drive Z is u
Volume Serial Number is 06C5-0075

Directory of Z:\

08/14/2003 02:35p <DIR> DEV1\root .
08/27/2003 10:35a <DIR> DEV1\root ..
03/06/1997 07:51p <DIR> DEV1\bin lost+found
08/26/2003 03:50p <DIR> DEV1\root work
...etc...

On Win2003 Server it is not:
Directory of Z:\

08/14/2003 02:35 PM <DIR> ... .
08/27/2003 10:35 AM <DIR> ... ..
03/06/1997 07:51 PM <DIR> ... lost+found
08/26/2003 03:50 PM <DIR> ... work
...etc...

(in reply to Ron)
Post #: 5
RE: Samba and file ownership - Sep. 12, '03, 7:43:43 AM   
Chinh

 

Posts: 6
Joined: Aug. 19, '03,
Status: offline
Hi everyone,

I seems to have the same problem with Ron. We have a mix HP Unix server and Win2k network. Our Unix sysadmin installed HP Samba version on our server, with security set to domain. I installed SFU on my Win2k box. The Samba drives were mapped under Windows Explorer.

When I open a shell under SFU, change to the Samba drive and do a directory listing using ls command, I do not see the appropriate owner and group listing of the entries. Instead I only see the UID and GID numbers that are not corresponding to any on the UNIX side. I can copy files to this directory but I cannot delete or change the access modes of any files or directory. Yet, I can delete the file using DOS command del. It is weird.

Here is the sample listing from both the ls and dir command:

/dev/fs/X % dir/q

Directory of X:\

09/11/2003 07:42a <DIR> USOHVAN-CI01\pzbh8k pzbh8k



/dev/fs/X % ll

drwxr-xr-x 1 4722 5061 0 Sep 11 07:42 pzbh8k


I am sure that 4722 and 5061 are not my UID and GID.

I have been scratching my head trying to figure out why SAMBA behaves like this.

Mark,
How does SFU communicate with SAMBA as far as id mapping is concerned. NFS use the user name mapping services to correctly translate the Windows to Unix uid & gid.

Thanks.

Best Regards.

Chinh Nguyen

(in reply to Ron)
Post #: 6
RE: Samba and file ownership - Sep. 15, '03, 9:29:19 AM   
markfunk

 

Posts: 670
Joined: Mar. 31, '03,
Status: offline
I haven' t used Samba in a long time. The newer versions know how to integrate with NT domains. I don' t know how it maps NT SIDs to Unix IDs.

(in reply to Ron)
Post #: 7
Page:   [1]
All Forums >> [Windows - UNIX Interop] >> System & Network Admin Forum >> Samba and file ownership Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.063