Putty logs me out / Putty throws me out after I log in
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Putty logs me out / Putty throws me out after I log in
I have copyed the users from an old linux machine to a new linux machine, after I did that I couldn't log in with putty with any user except root. I looked in /etc/passwd and all seems to be fine, no duplicate users. I did this before and it worked. Let me say that again, I did this before 2 months ago and it worked fine, now I have used the same commands, export UGI limit 500 blablaba, and export the users with awk. I can log in with root but if I want to log in with any other users of the system I can't. I have updated a password of a user and putty still throws me out. I have created a new user tried to log with it but still putty throws me out. Is there a log somewhere that can tell me why does putty throws me out ? Or something liek that ?! Did this ever happend to you guys ?
You have provided no information that would help us help you. What error messages does putty give you? It's probably not PuTTY's fault. What error messages are in the server's log?? Look in /var/log/secure or /var/log/auth.log or /var/log/messages or /var/log/syslog (you don't even mention what kind of Linux you're running). Please also read the link in my sig before asking future questions.
when I tried to enter with winscp I get in /var/log/secure that user not known for the underlying autentification mode but if i try to log in with the with putty i see that in /var/lo/gsecure sesion is oped for user xx and then sesion closed for user xxx
Should I go modify the pam.d or etc/map or something
copying /etc/shadow should be fine unless you copied it from a 32-bit system to this 64-bit system. Try adding a user with the useradd/adduser command, give it a password, and see if that works.
copying /etc/shadow should be fine unless you copied it from a 32-bit system to this 64-bit system. Try adding a user with the useradd/adduser command, give it a password, and see if that works.
I think it's probably 32 bits the old system, i'm not sure but I think it is. And I think that the first time when I copyed the users, I haven't copyed the shadow thing. Once again, I am not sure, but I think I didn'y copy the shadow from the old linux to the new one.
So, let's say this is the problem, is it a problem if I delete the shadow, would that be a problem ? Because I want to try like this.
And yes, I did crate an user with useradd command and then passwd thatuser and I tried to enter with it in putty but it throws me out.
At PAM Autentification at login Local or remote login at Authentication steps I have: include service system-auth
and at account verification steps I have :
Oh, and I did some cron jobs in crontab, and I have this logs, you think it is a problem ?
Aug 8 14:13:26 herculetest crontab[7443]: (root) BEGIN EDIT (root)
Aug 8 14:14:19 herculetest crontab[7447]: (root) BEGIN EDIT (root)
Aug 8 14:14:42 herculetest crontab[7450]: (root) BEGIN EDIT (root)
Aug 8 14:14:57 herculetest crontab[7452]: (root) BEGIN EDIT (root)
Aug 8 14:19:01 herculetest crond[4954]: (root) RELOAD (cron/root)
Aug 8 14:19:01 herculetest crond[4954]: (dsdsds) ORPHAN (no passwd entry)
Aug 8 15:01:01 herculetest crond[7831]: (root) CMD (run-parts /etc/cron.hourly)
Aug 8 15:12:59 herculetest crond[5001]: (CRON) STARTUP (V5.0)
Aug 8 15:13:00 herculetest anacron[5043]: Anacron 2.3 started on 2009-08-08
Aug 8 15:13:00 herculetest anacron[5043]: Normal exit (0 jobs run)
Aug 8 15:29:07 herculetest crond[4999]: (CRON) STARTUP (V5.0)
Aug 8 15:29:08 herculetest anacron[5041]: Anacron 2.3 started on 2009-08-08
Aug 8 15:29:08 herculetest anacron[5041]: Normal exit (0 jobs run)
Aug 8 15:43:25 herculetest crond[4993]: (CRON) STARTUP (V5.0)
Aug 8 15:43:26 herculetest anacron[5035]: Anacron 2.3 started on 2009-08-08
Aug 8 15:43:26 herculetest anacron[5035]: Normal exit (0 jobs run)
Aug 8 16:01:01 herculetest crond[6047]: CRON (*system*) ERROR:Could not set exec context to user_u:system_
r:unconfined_t for user, but SELinux in permissive mode, continuing
Aug 8 16:01:01 herculetest crond[6048]: (root) CMD (run-parts /etc/cron.hourly)
Aug 8 16:35:39 herculetest crond[5011]: (CRON) STARTUP (V5.0)
Aug 8 16:35:39 herculetest anacron[5053]: Anacron 2.3 started on 2009-08-08
Aug 8 16:35:39 herculetest anacron[5053]: Normal exit (0 jobs run)
Aug 8 17:01:01 herculetest crond[6371]: CRON (*system*) ERROR:Could not set exec context to user_u:system_
r:unconfined_t for user, but SELinux in permissive mode, continuing
Aug 8 17:01:01 herculetest crond[6372]: (root) CMD (run-parts /etc/cron.hourly)
Aug 8 17:04:51 herculetest crontab[6417]: (root) LIST (root)
Aug 8 17:04:57 herculetest crontab[6418]: (root) LIST (root)
[root@herculetest log]#
[root@herculetest]#
I have removed pam with : "yum remove pam" command, I didn't realise what I was doing. Now the server dosen't even have ssh, dosen't have nothing on it. I can't install anything, yum dosen't work. What should I do ?
After I removed the pam with yum remove pam I tried to log in with the informix user or any other system user and it worked but now I have this huge problem, I don't have nothing installed on the server. My question is, how do I install ssh and how do I make the yum command to work ?
At the root prompt if I service sshd start it tells me that: unrecognized service
I can't do anything now...
What should I do ? Should I try to install the server again ? I already triued with upgrade, and it installed many things but still yum and sshd dosen't work. Should I install the server typically ? But I am afraid that I will lose everything.
Couldn't save the data... I was forced to install the linux on the other hdd in order to save the data... tooked 2 hourrs to do that. The problem of all this was that I wasn't able to log in with any user(s) exxcept root which was working. I removed the pam like one guy told me (he said reinstall) and after I did that nothing was working.
Anyway, I have a clean install now, got the webmin, installed it, and I can't enter in the webmin itnerface, why ?
rpm -U webmin-1.480-1.noarch.rpm
it installed and after I tried to log in using https://localhost:10000 and http://localhost:10000 both didn't work. Ofc, I changed the localhost with the IP or the server 'cause I accesed it via windows machine. I did use /etc/init.d/webmin restart /start etc the service was restarted, I was checking it with status then and it tells me that it works but I can't login. Why ?
install perl5 libnet-ssleay-perl I have installed them too.
Oh, and one more thing, after I installed (clean install) the CentOS 5 I didn't install any package. Shold I have other packages installed in order for the webmin to work besides perl5 and libnet-ssleay-perl ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.