[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Jailkit-users] Trouble with authorized_keys2 file
From: |
Lincoln Zuljewic Silva |
Subject: |
Re: [Jailkit-users] Trouble with authorized_keys2 file |
Date: |
Tue, 21 Sep 2010 15:07:22 -0300 |
Does /var/log/secure say something?
Probably a problem with the $HOME of the user...
Regards,
Lincoln
On Tue, Sep 21, 2010 at 2:43 PM, Jason Richard
<address@hidden> wrote:
> I created a user using the below commands. I can log in when I use the
> password, but I am trying to setup the authorized_keys2 file and that is not
> working. I looked at other threads about this and they all say to check the
> permissions. I’m pretty sure I have them right, but I have included a full
> list of the directory tree as well. Anyone have any ideas what I might be
> missing? If necessary, this is on a CentOS 5.5 machine. Thanks
>
>
>
> jk_init -v -j /home/retail/nfm jk_lsh scp sftp
>
> groupadd nfm
>
> useradd nfm -g nfm
>
> echo test_pass | passwd --stdin nfm
>
> jk_cp -j /home/retail/nfm /usr/sbin/jk_lsh
>
> jk_jailuser -m -j /home/retail/nfm/ nfm
>
> chown nfm:nfm /home/retail/nfm/home/nfm
>
> echo "[nfm]" > /home/retail/nfm/etc/jailkit/jk_lsh.ini
>
> echo "paths= /usr/libexec/openssh/" >>
> /home/retail/nfm/etc/jailkit/jk_lsh.ini
>
> echo "executables= /usr/libexec/openssh/sftp-server" >>
> /home/retail/nfm/etc/jailkit/jk_lsh.ini
>
> echo "allow_word_expansion = 0" >> /home/retail/nfm/etc/jailkit/jk_lsh.ini
>
> echo "umask = 002" >> /home/retail/nfm/etc/jailkit/jk_lsh.ini
>
>
>
>
>
> $ cd /home/retail/
>
> $ ls -la
>
> total 32
>
> drwxr-xr-x 7 root root 4096 Sep 21 08:19 ./
>
> drwxr-xr-x 8 root root 4096 Sep 21 09:21 ../
>
> drwxr-xr-x 7 root root 4096 Sep 21 08:14 amtv/
>
> drwxr-xr-x 7 root root 4096 Sep 21 08:19 assurant/
>
> drwxr-xr-x 7 root root 4096 Sep 21 08:19 electronic_express/
>
> drwxr-xr-x 7 root root 4096 Sep 21 12:40 nfm/
>
> drwxr-xr-x 7 root root 4096 Sep 21 08:19 ntelos/
>
> $ cd nfm/
>
> $ ls -la
>
> total 28
>
> drwxr-xr-x 7 root root 4096 Sep 21 12:40 ./
>
> drwxr-xr-x 7 root root 4096 Sep 21 08:19 ../
>
> drwxr-xr-x 2 root root 4096 Sep 21 12:20 dev/
>
> drwxr-xr-x 3 root root 4096 Sep 21 12:28 etc/
>
> drwxr-xr-x 3 root root 4096 Sep 21 12:23 home/
>
> drwxr-xr-x 2 root root 4096 Sep 21 08:19 lib/
>
> drwxr-xr-x 5 root root 4096 Sep 21 08:19 usr/
>
> $ cd home/
>
> $ ls -la
>
> total 12
>
> drwxr-xr-x 3 root root 4096 Sep 21 12:23 ./
>
> drwxr-xr-x 7 root root 4096 Sep 21 12:40 ../
>
> drwxr--r-- 3 nfm nfm 4096 Sep 21 08:26 nfm/
>
> $ cd nfm/
>
> $ ls -la
>
> total 28
>
> drwxr--r-- 3 nfm nfm 4096 Sep 21 08:26 ./
>
> drwxr-xr-x 3 root root 4096 Sep 21 12:23 ../
>
> -rw-r--r-- 1 nfm nfm 34 Sep 21 08:19 .bash_logout
>
> -rw-r--r-- 1 nfm nfm 176 Sep 21 08:19 .bash_profile
>
> -rw-r--r-- 1 nfm nfm 1790 Sep 21 08:19 .bashrc
>
> -rw-r--r-- 1 nfm nfm 515 Sep 21 08:19 .emacs
>
> drwx------ 2 root root 4096 Sep 21 12:36 .ssh/
>
> $ cd .ssh/
>
> $ ls -la
>
> total 16
>
> drwx------ 2 root root 4096 Sep 21 12:36 ./
>
> drwxr--r-- 3 nfm nfm 4096 Sep 21 08:26 ../
>
> -rw------- 1 nfm nfm 1430 Sep 21 12:13 authorized_keys
>
> -rw------- 1 nfm nfm 1429 Sep 21 12:36 authorized_keys2
>
>
>
>
>
> Jason
>
> _______________________________________________
> Jailkit-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/jailkit-users
>
>
--
Lincoln Zuljewic Silva
More contact info.: http://www.system.adm.br/contact.php
"How often must a question be asked before it’s considered a
frequently asked question?"