LinuxQuestions.org
Help answer threads with 0 replies.
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 06-18-2013, 05:47 PM   #1
sl4sh
LQ Newbie
 
Registered: Aug 2010
Distribution: RHEL5
Posts: 9

Rep: Reputation: 0
Samba share, creating a file through Win gives wrong permissions


Having an issue that is racking my brain. I have searched and cannot find the answer (perhaps I'm not wording it correctly).

We have 2 Linux machines (RHEL 5, 2.6.18-348-4.1.el5xen) setup with Samba and a couple other pieces of software.

Samba works fine, except for the following
When a Windows user creates a file, the permissions include DOMAIN\USERNAME. If the same user creates that file under his Linux logon its just his USERNAME. This is an issue because our users can only create these files under Windows but the software we have under Linux only recognizes their Linux accounts. Before the Samba upgrade (see below) the Windows users files had just their USERNAMES listed under linux so it was "seamless"

Code:
-rw-r--r-- 1 user1         group01      0 Jun 18 14:11 FromLinuxFileBrowser.txt
-rwxrwxr-- 1 DOMAIN\user1  group01      0 Jun 18 14:10 FromWindowsExplorer.txt
Even the actual permissions are different. This wasn't an issue before we upgraded from Samba 3.0.33 to 3.0.8 (Because we're running a 2008r2 AD)

Any help would be greatly appreciated.
 
Old 06-19-2013, 12:03 PM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,250

Rep: Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684
Well I can't say I have played with a new version of Samba for a while, but the first question that would dawn on me is to check the config files and see if any alterations were made as part of the upgrade?
 
Old 06-20-2013, 10:32 AM   #3
sl4sh
LQ Newbie
 
Registered: Aug 2010
Distribution: RHEL5
Posts: 9

Original Poster
Rep: Reputation: 0
Compared my new and old smb.conf and they are the same.
 
Old 06-20-2013, 10:34 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 2,956

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
Also try ls -nl for those files, to see the actual uid and gid numbers instead of names.
 
Old 06-21-2013, 10:15 AM   #5
sl4sh
LQ Newbie
 
Registered: Aug 2010
Distribution: RHEL5
Posts: 9

Original Poster
Rep: Reputation: 0
Yes, its a completely different UID also. The gid is the same though (I do have a 'force group' option in the smb.conf
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Question: Permissions: Creating samba share, accessing it haertig Linux - Software 3 03-13-2013 05:49 PM
Samba share file permissions diogosalazar Linux - Server 1 03-19-2011 10:44 AM
Samba file share: need help with permissions xzased Linux - General 1 10-13-2010 11:12 PM
creating files from windows on a samba share gives read-only permissions. lievendp Linux - General 5 12-17-2008 11:55 AM
Samba -> WIn XP file share issue Starblade Linux - Software 1 10-26-2003 07:03 AM


All times are GMT -5. The time now is 01:06 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration