Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Suggest HOWTO

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 8th September 2006, 06:10
gregor_gede gregor_gede is offline
Junior Member
 
Join Date: Aug 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi guys

yes i put the passwd in the APPS line. i've mentioned it in my post on 30th August 2006 06:10. i believe yogi had also done the same thing. what distro that you use yogi? i use fedora core 4.
i've tried googling but nothing good comes up so far. may be nobody has ever tried this subject before

regards,
gregor
Reply With Quote
Sponsored Links
  #12  
Old 8th September 2006, 06:42
gregor_gede gregor_gede is offline
Junior Member
 
Join Date: Aug 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi guys

yes i put the passwd in the APPS line. i've mentioned it in my post on 30th August 2006 06:10. i believe yogi had also done the same thing. what distro that you use yogi? i use fedora core 4.
i've tried googling but nothing good comes up so far. may be nobody has ever tried this subject before

regards,
gregor
Reply With Quote
  #13  
Old 8th September 2006, 07:17
yogibear yogibear is offline
Junior Member
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy

Hi,

I use RedHat Enterprise Linux 4.2.6.9. tried to put "UsePAM yes" in sshd_config, got "Unsupported option" when restart sshd.

Regards,
yogi
Reply With Quote
  #14  
Old 9th September 2006, 03:21
yogibear yogibear is offline
Junior Member
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi gregor,

Finally got passwd to work here.

1. Module is unknown: due to missing cracklib.so.2

cp /usr/lib/libcrack.so* /usr/lib
(or /lib/ it works for me in /lib. try /usr/lib first)

2. passwd: Critical error - immediate abort

- make sure dictionary is in /usr/lib/
cracklib_dict.hwm
cracklib_dict.pwd
cracklib_dict.pwi

3. passwd: Authentication token manipulation error
- make sure /etc/shadow has the user in it.

tgif,

yogi
Reply With Quote
  #15  
Old 13th September 2006, 09:28
gregor_gede gregor_gede is offline
Junior Member
 
Join Date: Aug 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thx yogi. i've got it work too. but when i log out and tried to log in back again using the new password, it won't work. i have to login using the old password. didn't you face the same thing?
btw, shouldn't the system automatically adds every newly created user in /etc/shadow- ?

regards,
gregor
Reply With Quote
  #16  
Old 14th September 2006, 06:42
gregor_gede gregor_gede is offline
Junior Member
 
Join Date: Aug 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

hi guys, i've found a way to make use of the new password. copy the /etc/shadow, /etc/passwd, /etc/group to /home/chroot/./etc/
Make sure password field in passwd file is x which indicates that the real password is stored in the shadow file.

when the chrooted testuser issues passwd command and create a new password, it would change the password value stored in the /home/chroot/./etc/shadow file. when he log in back again using the new password, the system won't recognize it because it compares the password with the one stored in /etc/shadow.

so my idea is to create a patch file using diff command from the /home/chroot/./etc/shadow and then applied it to /etc/shadow.

chmod 400 /etc/shadow
chmod 400 /home/chroot/./etc/shadow
cd /home/chroot/etc

diff -u /etc/shadow /home/chroot/etc/shadow > shadow.patch
patch -b /etc/shadow /home/chroot/etc/shadow.patch

put the last two commands in the cron job......

it works perfectly now for me.... thank's to you guys......

regards,
gregor
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot create mail accounts called 'root' or 'mail' AaronNGray Installation/Configuration 8 21st August 2006 16:34
SSH Users CHROOT howser Installation/Configuration 20 2nd August 2006 08:22
Multiple Admin Users esadmf General 2 10th May 2006 19:39
The perfect Setup Suse 10 RC1 ispconfig won't create postfix users! fatum112 HOWTO-Related Questions 1 14th January 2006 14:25
Chroot FTP users olli Server Operation 3 25th April 2005 11:35


All times are GMT +2. The time now is 01:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.