Linux installation (next): user account problem

54 views
Skip to first unread message

Alex

unread,
Sep 21, 2006, 8:58:28 AM9/21/06
to spctools-discuss
Hello again,

I'm not able to create another account that works under Linux. Tried
following:

1. mkdir user
2. cd user/
3. crypt isbTPPspc user> .password

However, the user is recognized, but not the password. We already had
this problem with the guest account after installation, but we copied
the key in the .password file on cygwin installation and it worked.
Should we do it differently under Linux as from what I'v understood,
crypt is not used anymore normally on linux???

Thanks and sorry for asking so many questions,
Alex

David Shteynberg

unread,
Sep 21, 2006, 9:09:32 AM9/21/06
to spctools...@googlegroups.com
What is the file permission/ownership setting on the new .password file?
This file has to be readable by the Apache user.

Thanks for asking really useful questions!
-David

Alex

unread,
Sep 21, 2006, 11:04:44 AM9/21/06
to spctools-discuss
The .password file is readable by all, thus Apache user should be fine.
I think it must be related to our crypt software.
We have Redhat enterprise 4 installed and no crypt was installed. We
just installed a crypt binary, but maybe this is not the good one. As I
sais in the previous post, for the guest account, I had to modify the
key in the .password file that I copied from our cygwin .password file
and it worked. However, if create a new account under cygwin and copy
the key to the same user .pasword file on linux, then the GUI
crashes!!!

Which version of crypt are you using????

Alex

David Shteynberg

unread,
Sep 21, 2006, 11:36:52 AM9/21/06
to spctools...@googlegroups.com
Hi Alex,

To ensure that the password is encrypted using perl's version of crypt,
please try setting your password using the following perl script:

#!/usr/bin/perl -w
print crypt($ARGV[0], "isbTPPspc") . "\n";

Place the code in an executable setpasswd.pl file and run as follows:

setpasswd.pl [password] > .password


I hope that'll works!

-David
winmail.dat

Luis Mendoza

unread,
Sep 21, 2006, 1:14:07 PM9/21/06
to spctools...@googlegroups.com

Another (and quicker!) way to make this work is to make a copy the
'guest' directory under a new name (and delete the session files):
cd $TPP-BIN/users/
cp -pr guest newuser
rm newuser/session_*

At this point, account 'newuser' is enabled, with the password for
the 'guest' account. That user can use that to log in, then change
the password within the GUI, under the 'Account' section.

Hope this helps!
--Luis

Alex

unread,
Sep 22, 2006, 10:14:52 AM9/22/06
to spctools-discuss
Thanks guys.
Both solutions work fine. I'm still trying to calculate which one is
the fastest solution ;-)

Alex

Reply all
Reply to author
Forward
0 new messages