Koozali.org: home of the SME Server

add temprorary root/admin user

Jeff Pe

add temprorary root/admin user
« on: October 30, 2003, 02:15:49 PM »
Hello,

i need to set up a temporary user on an 4.1.2 machine which is allowed to connect via ssh/putty via RDP Port 3389 (root can do that). So it is not an email/normal user I try to add. I tried it with expiration date:

adduser Blahblah -p somepassword -e 23-11-2003

The user is accepted but on trying to log in the password is rejected. If this have been answered before please point me to the thread. thx.

Michiel

Re: add temprorary root/admin user
« Reply #1 on: October 30, 2003, 02:30:44 PM »
Using adduser on a SME box is generally speaking not a good idea. If I were you, I would create the user via the server-manager and set up a cron job to lock the account in a few days.

Jeff Pe

Re: add temprorary root/admin user
« Reply #2 on: October 31, 2003, 01:42:44 PM »
O.K., it worked.The User is logging in, gets this and can RDP connect with Putty through port 3389. Thanks.

------------------------------------------------------------
e-smith server and gateway
------------------------------------------------------------
Standard user login services have been disabled.

You may access e-smith server and gateway services such as POP
and SMTP using virtual private networking or port forwarding.

Type "end" and press ENTER to terminate this connection:

Pete Walker

Re: add temprorary root/admin user
« Reply #3 on: October 31, 2003, 02:07:08 PM »
You need to enable user shell access.

See this thread for a package that will do this for you
http://forums.contribs.org/index.php?topic=18196.msg71380#msg71380

Otherwise just change the shell for the new user to something useful like bash.

Cheers

Pete

Pete Walker

Re: add temprorary root/admin user
« Reply #4 on: October 31, 2003, 02:08:34 PM »
You need to enable user shell access.

See this thread for a package that will do this for you
http://forums.contribs.org/index.php?topic=18196.msg71380#msg71380

Otherwise just change the shell for the new user to something useful like bash.

Cheers

Pete

Pete Walker

Re: add temprorary root/admin user
« Reply #5 on: October 31, 2003, 02:12:15 PM »
You need to enable user shell access.

See this thread for a package that will do this for you
http://forums.contribs.org/index.php?topic=18196.msg71380#msg71380

Otherwise just change the shell for the new user to something useful like bash.

Cheers

Pete

Jeff Pe

Re: add temprorary root/admin user
« Reply #6 on: October 31, 2003, 02:48:21 PM »
Triple post.

Thanks to both of you. For what the user should do i've found out that he does not need to have shell access. He is able to connect via RDP through the port 3389 to another computer without shell access. But i've tried the package and it worked on the 4.1.2 machine.