LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-01-2011, 09:16 AM   #1
JayNic
LQ Newbie
 
Registered: Dec 2011
Posts: 3

Rep: Reputation: Disabled
RedHat Samba file ownership issues sharing with Windows users


Hi all,
First post here so sorry it this is a dumb question or my understanding if off the mark.
I have installed Samba on a Redhat 6 box. I have AD intergration working correct as users are using their AD details to the share and can access, read, write the files etc.
We upload files to this share via FTP (local unix account on the server) the files take the owner and group membership of this user. Correct so far.
When a windows user edits these docs and saves them back the owner and group memberships are not being updated, they are staying as the original local account.
Is this correct? I would like the last user who edited the file to be stamped.

Thanks for any insight.
J
 
Old 12-02-2011, 06:30 PM   #2
coolsg5636
Member
 
Registered: Sep 2011
Location: Pune,India
Distribution: RHEL ,CentOS, Fedora
Posts: 100

Rep: Reputation: 25
Can you please paste the output of 'ls -l' command? Run this command on Samba share directory and as well as inside this directory.

-Sandy
 
Old 12-03-2011, 10:05 AM   #3
JayNic
LQ Newbie
 
Registered: Dec 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the reply. Info below.

datavol is the "Share"

drwxr-xr-x 9 root root 4096 Dec 2 16:34 ARCHIVE
drwxrwxrwx. 27552 root root 614400 Dec 2 16:35 datavol
-rwxrwxrwx. 1 root root 69 Nov 4 14:45 juan.sh
drwxrwxrwx. 2 root root 4096 Feb 10 2010 lost+found
-rwxrwxrwx. 1 root root 43 May 28 2011 nohup.out
drwxrwxrwx. 8 ftpdata root 4096 Aug 1 19:32 sysvol

Directory listing of datavol

drwxrwxrwx. 7 nobody nobody 4096 Aug 5 2010 %0002
drwxrwxrwx. 8 ftpdata root 4096 Dec 21 2010 !0003
drwxrwxrwx. 7 nobody nobody 4096 Mar 21 2011 %0003
drwxrwxrwx. 7 nobody nobody 4096 Mar 22 2011 %0004
drwxrwxrwx. 8 nobody nobody 4096 Dec 10 2010 !0005
drwxrwxrwx. 8 nobody nobody 4096 Nov 21 18:53 %0005
drwxrwxrwx. 8 nobody nobody 4096 Dec 10 2010 !0006
drwxrwxrwx. 8 nobody nobody 4096 Nov 22 00:04 %0006
drwxrwxrwx. 8 nobody nobody 4096 Nov 21 20:44 %0007
drwxrwxrwx. 8 nobody nobody 4096 Jul 11 11:54 %0008
drwxrwxrwx. 8 nobody nobody 4096 Nov 22 04:13 %0009
drwxrwxrwx. 8 nobody nobody 4096 Nov 25 06:20 %000A
drwxrwxrwx. 8 nobody nobody 4096 Nov 22 13:48 !000B
-rwxrwxrwx. 1 ftpdata root 175 Feb 11 2010 000B.ERR
drwxrwxrwx. 8 nobody nobody 4096 Jun 24 23:18 %000C
drwxrwxrwx. 8 nobody nobody 4096 Nov 21 20:37 %000D
drwxrwxrwx. 8 ftpdata root 4096 Jun 27 15:09 !000E
drwxrwxrwx. 8 nobody nobody 4096 Nov 21 23:05 %000E
drwxrwxrwx. 8 nobody nobody 4096 Nov 22 05:00 %000F
drwxrwxrwx 7 nobody nobody 4096 Dec 2 00:03 !000G
drwxrwxrwx. 8 nobody nobody 4096 Nov 22 13:21 %000G
drwxrwxrwx. 8 nobody nobody 4096 Nov 22 13:48 %000H
drwxrwxrwx. 8 nobody nobody 4096 Nov 22 13:40 %000I
-rwxrwxrwx. 1 ftpdata root 7 Feb 3 2010 000.IPT
drwxrwxrwx. 8 nobody nobody 4096 May 19 2011 %000J
drwxrwxrwx. 7 nobody nobody 4096 Nov 21 19:31 %000K
drwxrwxrwx. 8 nobody nobody 4096 May 19 2011 %000L
drwxrwxrwx. 8 nobody nobody 4096 Nov 21 19:44 %000M
drwxrwxrwx. 8 nobody nobody 4096 Nov 21 20:09 %000N
drwxrwxrwx. 8 nobody nobody 4096 Nov 21 20:16 %000O
--More--
.....Truncated
Perms are the same all thru the directory tree.
Thanks
 
Old 12-04-2011, 08:09 PM   #4
coolsg5636
Member
 
Registered: Sep 2011
Location: Pune,India
Distribution: RHEL ,CentOS, Fedora
Posts: 100

Rep: Reputation: 25
Sorry for the late reply.

Can I know which local unix user do you use to upload these files to the server ?

Which group this user belongs to ?

File ownership in your samba share belongs to "nobody" user and as far as I know its kind of "no login,no shell" account.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file sharing with windows other than samba bruse Linux - Networking 7 05-09-2005 05:54 AM
Samba and Windows XP file sharing rattiane Linux - Networking 1 03-23-2005 09:47 AM
i wanna make a sharing between redhat v9 abd windows xp using samba but i cannot do abdelhlims Linux - Networking 1 07-13-2004 04:27 PM
Authentication Regarding Samba Sharing File, redhat or suse jaywave Linux - Software 1 07-08-2004 12:31 PM
samba redhat-windows file sharing rigolo Linux - Networking 7 08-05-2003 08:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration