CentOS 5 :: Migrating FTP And Users Db From Fedora 4?
May 4, 2009
I have an old fedora 4 server, used primarily for ftp access, that I need to migrate to a new machine that will run Centos 5.There are 50 user accounts defined locally on that server: how can I migrate them (user, pass, login options -ie no shell access-, data dir) to the new centos 5 server?
We've got to move a LAMP web application from a Red Hat box over to Cent OS. Actually it might wind up being a few applications. Basically are there any scary monsters to watch out for?
I will have some more details tomorrow morning as to exactly what we're moving and off of and on to what. The Cent OS installation I believe is 5ish. Red Hat could be a wildcard. <-It might be Red Hat, Red Hat Enterprise or Fedora
Description: I want to migrate all home directories and users from one webserver to another. The old server runs OpenSuSE 11.2 and the new one OpenSuSE 11.4. I appended only the userpart of the passwd file from the old server to the new one. I did the same with the shadow file and the group file. I checked the user rights for all three of them and they were ok (shadow 600). I have done such a migration before and at that time it worked fine. Now for the weird part:
Errors: At first it seemed everything was ok. Websites and webshops were visible and working correctly. At first ftp seemed to work fine. Login worked but when uploading files, the error messages appeared: permission denied. Further testing gave following results:
-Root and users can login on console with their old passwords.Root can create new users, but they can not login: some error message comes, but is unreadable since it stays too short on display. After that it prints hint: on a new line and on another new line it gives a new login prompt. Root and users can change user's password, but then they can not login anymore. The same unreadable error message appears. -Users can login with ftp, even after changing passwords(!) but can not change or add files var/log/messages only shows: uthentication failure twice.
Actions so far: Emptied /tmp reboot copied the users again from passwd and shadow checked UID's and GID's again googled a lot
I have a working system running Jaunty. For various reasons I want to move to Karmic, but I don't want to use the "upgrade" feature in the software update manager. I need to swap some hard drives around, so I want to do a fresh installation. My question is, what is the easiest way to "migrate" a user to a fresh installation? On a Mac you can simply run the migration tool and it moves everything into place with relative ease, whether from a backup drive or from one computer to another. Is there any analogous program in Ubuntu? Or is it just so simple that such a program is unnecessary?
can i just copy/backup postfix mail queues in /var/spool/postfix and paste that folder back in after i done migrating all users and mails to a new mailserver?
On a pc running Fedora4 with cups-1.1.23-15.4 , I have printers setup that can accept lp submitted jobs from other pcs, including windows pc on the LAN and a UNIX machine that is not on the lan. I would like to get the same functionality going with CentOS5.5 and cups 1.3.7-18.el5 5.7 On the CentOS pc
lpstat -p -d printer 5si is idle. enabled since Tue 14 Sep 2010 03:30:34 PM PDT printer Cups-PDF is idle. enabled since Thu 03 Jun 2010 09:42:49 AM PDT
I'm migrating a server form CentOs to Ubuntu 11.04. I migrated the users, moving the config files and gaining the access prompt for all the users just when I modified adduser.conf and login.defs, changing valid uid and gid to start from 500 instead of 1000. When I try to copy the files from old server to the new one, either with rsync or cp -br, the system set to 0 uid and gid. If I explore the mount point, connected with sshfs, I can see the correct configuration, either as names or as numeric data.
With the release of CentOS 5.5 ext4 is considered stable in this distribution so I decided to migrate to it. Luckily I started from migrating fresh server with CentOS 5.5 using some instruction I found on the internet. I think I shouldn�t say, that I screwed the whole thing up ;) After about 6 hours cursing, kicking, and crying I solved the task and figured the correct sequence of actions. The small problem with migrating root partition is that you can�t unmount it BTW.
During migration task, I found, that CentOS 5.5 rescue mode is somewhat broken a little in terms of ext4 support. It can mount ext4 partitions successfully. But its e2fsprogs package (tune2fs, e2fsck etc.) doesnt see ext4 partitions and say, that superblock is corrupted on a partition once is converted to ext4 (at least it did it for me. May be I should force filesystem type with -t ext4 switch?). Keep in mind, that if you screw your system up too badly, you will not be able to run tune2fs and e2fsck on it from rescue modeBut you will still able to mount it if it is not corrupted badly. In all below examples,Boot your system normally and login as root. Upgrade kernel if you wish (I usually use yum upgrade to upgrade all on new machines). Then upgrade/install some other packages
I've been looking at Gnome 3 and the Gnome Shell and I don't like what I see. The Gnome devs are taking things in a direction I don't like, giving us new ways to do things that don't interest me and making them mandatory. AFAICT, in the long run there's no real way to configure things to work the way I've been doing things for the last fifteen years. This is not a rant, not (mostly) a complaint, merely an observation. Clearly, I'm not part of their target demographic and I doubt that I'd want to be under the circumstances.
To me, that means it's time for me to move on and try something different. After some careful research, I've migrated my laptop to XFCE and am very happy with it. Now, I'm about to do the same to my desktop. This leaves me with an interesting question: what's the best way to remove Gnome from my two machines without removing any support needed for various programs that I'm accustomed to using and expect to continue using?
I recently bought a bigger drive for my laptop which had an encrypted LVM PV on it that I wanted to get rid of for performance reasons. I hit a few snags with the migration and documented it on my blog.
Fancy reading it? Go to my blog post about upgrading harddrive with encrypted LVM.
i was using mysql in fedora, but our instructor has told to use oracle 10 g , as i have to submit a project ,please help me out ,whether how to migrate all mysqld database to oracle in the same format and how to run queries in it
Samba up and running on my pc. pc runs FC12 with kde. A laptop has win vista. The pc can access the shares on the laptop but the laptop has authentication issues to access the pc. Note that windows doesnt enforce authentication forincoming network connections.Using the system-config-samba util i tried to map a windows user to the unix user "feduser". The laptop (named LAPPY) has a user (lapuser) which has on windows no password.What should I tell samba config what the windows username should be? lapuser or LAPPYlapuser doesnt work because when accessing the pc via the laptop, the authentication fails. The only auth that is successful is when choosing the same winusername as the unix username.
Secondary, id like to setup the laptop so that the user doesnt have to provide a name and password, or at least not more then once in the lifetime of the laptop. Note that you cant provide an empty password to system-config-samba. How is that possible?
Strange but not really on issue imho:the samba - KDE control module(kcmshall4) (and the smb.conf) shows 2 shares: the homedirs and the data dir the samba server configurator (system-config-samba) shows only the datadir.
So far, I've been able to get my Box (Centos 5.3) authenticate users through LDAP. My next plan was to automount their home directory from our NAS device.But I'm struggling getting autofs talking to the LDAP Server.My Config Files:
/etc/ldap.conf [root@tmplt_CentOS-5 ~]# egrep -v '^#|^$?' /etc/ldap.conf base ou=intern,o=zde,dc=simiangroup,dc=com
Install Linux (Fedora) on a laptop, that has XP right now (removing XP completely). Preserve the contents of "My Documents" on the same hdd while installing linux on my laptop (external hdd unavailable) The installed Linux to use full hdd space, contents of "My Documents" to be in /home, and have no leftover partition, that was used while migrating. It would be nice to have a regular hdd scheme after all of that.
Problem: I need to map directories to a user's home directory when they log in.
For example, I need to map /school/homework/ to user "steve" in his home directory when he logs in. I'm guessing I could use a logon script, but I can't figure out what command I should be putting in the script. I've been searching for hours through man pages and googled it a ton and can't find anything on it.
I have centos 5.4 installed (2.6.18-128.2.1.el5 #1 SMP Tue Jul 14 06:36:37 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux), and I am using WHM/Cpanel to manage my server. I am looking for a GUI utility, so I can graphically manage users/groups.
How would i go about restricting users to there home dir in sftp and in ssh so that they can not go poking about other dir and files thats above there home dir ?Operating systemCentOS Linux 5.4 Kernel and CPULinux 2.6.18-194.8.1.el5.028stab070.5PAE on i686 Also it will have to be a low resource usage as i dont have much memory on it
I'm looking for some sort of a way keep track of all of my users that are logging in to my server (centos 5), what I mean is this: at our firm we outsource some of our work (programing), now all of the developing is done under our servers, what I'd like to find is a way of taking all of the users log on time and display by days/weeks/months - so I could see how much did everyone had put in. Another thing that I'm looking for is a way to monitor an ongoing session and record user activity, now I've seen ObserveIT, but it doesn't support Linux agents as of today.
I need some kind of step by step process to restrict my users to only have access to directories that I specify ? For example user joe can only access his home directory, read access to /tmp and read access to /var/log/httpd
I did useradd -g users ldaptest and tried logging in remotely but the client always says no such user. what do I have to do to update the users that LDAP sees?
I'm trying to do a little bit of setup on our new server and could use a hand.I'm working on creating a simple display script that our users can SSH in and invoke, here is what I'm attempting to do.
Requirements.
1. Must run X over ssh on Mac OS X 10.5 or greater
2. Must work in the office, or on the road
Implementation: 1. Set up the system to auth against LDAP (Open Directory)
2. Create a script on the PATH that checks which displays are available, and launches Xephyr for the first available one.
3. Create a client script that performs the SSH and Xephyr command so that users can simply click the script to start an X session.
I have 1 set up, but I'm having issues with 2 and hence 3. For instance, I can start XNest with the following commands.Start my SSH session
After this beeing done, i whant to login with this user via ssh using putty. Do i have to set-up something in centos 5.3 to allow user logins via ssh? With root user i can login without problems.
How can I prevent users from changing their own password? I was surprisingly unsuccessfull in finding a solution for this on google. Lots of stuff about hardening ssh access or dealing with password aging using "chage" but nowhere could I find an answer for my question.
I am trying to set up an SFTP server. I can log on to it with no problem. But our trading partner for whose benefit we want it cannot. They are unable to make a connection. Here is what happens when they try:
Error: Could not open connection to `ogxxxsft@subdomain.domain.com': Could not connect to `subdomain.domain.com': Unable to connect to server