jailkit-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jailkit-users] I need some help please....


From: Olivier Sessink
Subject: Re: [Jailkit-users] I need some help please....
Date: Thu, 17 Jan 2013 22:48:56 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2

On 01/16/2013 11:17 PM, Jeff Jennings wrote:
>> use jk_init -j <jailpath> sftp
> 
> I did this and changed the shell back to: /usr/sbin/jk_chrootsh and
> still an unable to ssh in due to the file server transfer could not be
> started
> 
> here's the message I go when executing the jk_init
> 
> address@hidden ~]# jk_init -j /home/jail sftp
> Device /home/jail/dev/urandom does exist already
> Device /home/jail/dev/null does exist already

you better look at the logging messages when you try to log in for ssh
or sftp. (you did enable logging inside the jail?)

that will probably tell you why it is not working.

grep jk_ /var/log/* will tell yu which log files have logging from jailkit

> I did make the directory and all of it's sub directories and files owned
> by group tecq
> 
> and when I login as tecq I do get placed in the proper directory but am
> still unable to copy a file.
> 
> -bash-3.2$ ls -l *.html
> -rw-r--r-- 1 1210 1205 7917 Jan 11 14:01 home.html
> -rw-r--r-- 1 root root  100 Dec 18 08:04 index.html
> -rw-r--r-- 1 1210 1205   22 Jan  1 03:02 test.html
> -bash-3.2$ cp home.html test1.html
> cp: cannot create regular file `test1.html': Permission denied
> -bash-3.2$

to copy a file you need write access to the directory. `ls -al` will
give you the directory permissions. Since all of the files are not group
writable, I guess the directory is also not group writable.

chgrp -R tecq /path/to/home/dir
chmod -R g+w /path/to/home/dir

Olivier

-- 
Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]