|
Post by omega on Sept 19, 2007 5:52:30 GMT 7
I have been asked (Hi jormaster2k) if it is possible to enable users defined in SAMBA for SSH and it's utilities too. And the answer is: yes - but only manually at the moment (another idea for a module ) There are basically two possibilities: 1) The authorized keys file /raid/data/module/SSHD/system/etc/ssh/authorized_keys is used by the SSH daemon. Add the user who should be able to access your N5200 (it must be an user which is already in /etc/passwd) to that file, with the RSA or DSS key of course. Check the man page for SSHD for further details. 2) The same would be possible using the ssh_known_hosts file based on host authorization but the config file for the SSHD daemon needs to be adjusted for that (this option is currently turned off). 3) Edit the file /etc/passwd and edit the 6th and 7th field (field separator is ":"). Set the 6th field to the home directory (e.g. /raid/data/whatever) and the 7th field to /bin/sh. Finally call " passwd user" where user is the user for which you want to set the password. Now you are able to login with the SSH utils and the configured user. Solutions 1) and 2) have the advantage that you don't need to edit /etc/passwd as the authentication is done by the public keys. Solution 3) is just the classic method and maybe a little bit simplier as 1) and 2). Yet another idea for a fine new module. Hope this information is detailed enough... but I fear that it's still too technical. But need to go to bed now... Andreas
|
|
|
Post by jormaster2k on Sept 19, 2007 11:51:40 GMT 7
;D Thanks Andreas, I will try that later. I agree that it all sound a little complex for the average user, and maybe I will work on a shell script to facilitate the insertion/maintenance of SAMBA users for the SFTP/SCP purpose. Luckily for me I have been working on UNIX and Linux for a few years and I pretty much got your points !! I will try and do as you suggested and let you know as soon as I get some results. Thanks for the tips: I appreciate it immensely !
|
|
|
Post by jormaster2k on Sept 21, 2007 0:04:58 GMT 7
Andreas, I am going to try this today until i make it. I have only one question: should I mounth the module IMGDUP before I modify any of the setting files (passwd, etc,) involved?
|
|
|
Post by omega on Sept 21, 2007 0:54:24 GMT 7
No, the IMGDUP module isn't needed for that. /etc is a r/w filesystem.
The only problem could be that some configuration files are recreated on reboot. But I'm quite sure that this isn't the case here and even then, just don't reboot.... ;D
Good luck,
Andreas
|
|