- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Samba question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2003 07:57 PM
03-18-2003 07:57 PM
Samba question
I have a HP E200 server running RH6.2 with samba-2.0.6-9 installed.Now I find the hard disk(system disk) has some bad blocks on it.I decide to change it with a new disk.I also want migrate the system to RH8.I install the RH8 on the new disk and copy the files(include smbpasswd,smbusers,smbconf,passwd,shallow,group,gshallow) to the appropriate location.I make sure that all the shared directorys have same path with the old one.After restart the smb service,I can visit it from a Win2k computer.But after I restart the computer I find some shared directorys's owner and group have been changed to number like 531,571.However the owner and group of that directorys are tom or mike in the old system.
Any ideas.
Regards,
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2003 08:16 PM
03-18-2003 08:16 PM
Re: Samba question
Did you make the shared directories before you copied over your passwd file? If so, that might explain it. You should be able to just change the ownerships of the directories to the correct owner without any trouble.
What version of Samba are you running on the new box? You might also want to do a 'testparm' to make sure the newer version of Samba is happy with your current smb.conf file.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2003 10:11 PM
03-18-2003 10:11 PM
Re: Samba question
The owner & group owner are set on the files & directories as what you currently see which is UID & GID. If you go to your old system and did a "grep 531 /etc/passwd" you would find the password entry for tom or mike. If you did a "grep 571 /etc/group" you would find the group entry for the group that these users belonged to. The "ls" command translates these numbers into the username/groupname of the correct owner if it can find it.
When you created these users in RH8, it created the users with new UID & GID is all.
If the new system had UID 531 mapped to someone else, then these files would have appeared to change ownership, and you would have the owner as fred, or bill now instead.
What you could do in the future when upgrading to 8.1 for instance is copy over the /etc/passwd, /etc/shadow, and /etc/group files to the new system. The format of these files has been static for as long as I have worked on *nix so you are fairly safe keeping your old ones.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 12:32 AM
03-19-2003 12:32 AM
Re: Samba question
Many thanks for your quick response.Firstly, I installed the RH8 on the new disk.Then I copied the /etc/passwd,/etc/group,/etc/shallow,/etc/gshallow,/etc/smbpasswd,/etc/smbusers,/etc/smbconf from RH6.2 to RH8.After that I made the same hierarchy file system with the old system(only the shared directories).And I run the testparm,everything is ok.Last I restart the smb service and I can visit the shared directories with some user on the W2k computer.
BTW there are more than 200 user are using this server.There are many shared directories being changed to number.It must cost me lots time to manual assign the owner and groups to those directories.I think there might has something I don't do to migrate system.Thanks again.
Regards,
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 01:45 AM
03-19-2003 01:45 AM
Re: Samba question
Do you see the numbers only on the win2k machine, or only on the linux-box. In the latter case, the problem has nothing to do with samba. In the first case, we have to check for samba-cobfiguration.
Donald
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2003 03:54 AM
03-19-2003 03:54 AM
Re: Samba question
When you made the shared directory heirarchy on the new system, what method did you use? Did you use something like cpio to create an archive on the old system, or did you just do a bunch of mkdir's to create your heirarchy? Did you copy over the passwd,group, etc. files and then reboot, or did you make the heirarchy before rebooting?
Probably your best bet now is to just go ahead and find all the files and directories with no valid user assigned to them and fix them. Something like this:
find /lowest/dir/mount -nouser -print
will give you a list of the offending files and directories.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2003 07:49 PM
03-22-2003 07:49 PM
Re: Samba question
http://ctdp.tripod.com/os/linux/commands/index.html
Run "...find -user uid..."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2003 09:30 PM
03-22-2003 09:30 PM
Re: Samba question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2003 07:01 PM
03-24-2003 07:01 PM
Re: Samba question
Sorry for the late reply.I will try the suggestions provided by you.
Steele,
I can't visit that URL http://ctdp.tripod.com/os/linux/commands/index.html.
Regards,
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2003 09:56 AM
03-27-2003 09:56 AM
Re: Samba question
It will let you do a complete disk copy, and I actually use it to create complete disaster recovery backups of my Linux systems.
In my disaster recovery tests, I was able to replicate entire systems disk to disk, put the new disk in as the boot disk and get the Linux server to boot, no issues at all.
I do the same thing to migrate Windows systems to faster hardware.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com