LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-18-2006, 12:14 PM   #1
LukeKess
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
Question Samba Permission Problems.


Ok, so I was given the task of creating a new Virtual Machine to replace are old Samba Server. That was easy enough. But where I went wrong was I added all the samba users by hand on the new server. This gave all the users new UIDs, instead of keeping there old ones. So when I copyed all the files over from the old samba server to the new one, peoples permissions to files where all messed up. So what I did was I edited the etc/passwd file and changed all the UIDs & GIDs to match what the origial samba server. This worked!!

However, a month later I noticed that when you look on the file permissions from a windows machine, it tells me that the owner of the file is somebody it should not be. I know this is not true, but windows keeps telling me that it is. (Stupid Windows).

This is more of annoyance than a serious problem, but I would appreciate any help that I could get.
 
Old 09-19-2006, 09:06 AM   #2
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Quote:
Originally Posted by LukeKess
But where I went wrong was I added all the samba users by hand on the new server. This gave all the users new UIDs, instead of keeping there old ones. So when I copyed all the files over from the old samba server to the new one, peoples permissions to files where all messed up. So what I did was I edited the etc/passwd file and changed all the UIDs & GIDs to match what the origial samba server. This worked!!

However...
As you have changed the UIDs in /etc/passwd, you got to synchronise it with /etc/samba/smbpaswd as well. (If incase you are using this default passdb backend)
 
Old 09-19-2006, 03:04 PM   #3
LukeKess
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks alot man! That seems to be the issue. I checked the two files and the UIDs don't match up. I'm going to change the smbpasswd file tonight.

Thanx Again
 
  


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
Samba - dont have permission to browse samba share. Scrag Linux - Software 4 11-28-2006 01:42 AM
Samba permission hampeh Linux - Software 5 06-15-2005 09:41 AM
Samba permission problems anti_trend Linux - Software 11 04-22-2004 08:50 AM
samba permission problems Jestrik Linux - Software 1 03-27-2004 11:34 AM
Samba Permission problems... Gattancha Linux - Software 6 07-07-2003 11:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration