SSH and adduserForum: Other Help Topics Topic: SSH and adduser started by: jfred1989 Posted by jfred1989 on Aug. 02 2004,12:59
Hi I am trying to configure ssh on dsl and need to add a user on the system to log in with. The adduser comand threw some errors about not being able to edit the password file. I also tried logging onto ssh with root but was unsure of what the actual root password is. If it matters i have been loading the cd into ram with the dsl toram boot opton. Any help is apreciated thanx.
Posted by roberts on Aug. 02 2004,13:06
You set the root password for root by using sudo passwdYou should always do this before using SSH. Adding users is not currently supported on the liveCD or toram. Because there are no login screens. I know you are thinking SSH accounts. Adding users is supported if you do an enhanced or standard hard drive installation. Posted by jfred1989 on Aug. 02 2004,13:22
thanx that clears things up for me.
Posted by clacker on Aug. 04 2004,18:29
Roberts, just for the giggles of being able to add a user for ssl from a LiveCD, I think the following script enables useradd and groupadd to work correctly. I had read about people on the board changing shadow files and such from links to copies of the files, so I tried it out myself. The script needs to be run as SU, perhaps with sudo bash enableuser.sh
Then add groups with sudo groupadd friends (or whatever) and add users with sudo useradd jones You still can't login or out, of course, but you can start the ssl daemon and log in as that user with that password. Posted by roberts on Aug. 04 2004,23:00
clacker,yes, it can be done, just as you have. Nice job. It is just not that practical for general use. You should also then add the files that you moved to your filetool.lst for backup/restore. This is fine for those that need mutiple ssh users. I remember when there was so much debate about starting the ssh daemon or the scp progam. It is not in the general distro, as we are very aware, of ramdisk usage and even more so inode usage, in order to support our users with very low memory. However, for a dedicated purpose machine, your script could be very helpful for someone that needs ssh/scp users. Thanks for sharing. |