Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Jail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ColdFusion
n00b
n00b


Joined: 06 Jan 2004
Posts: 48

PostPosted: Fri Nov 04, 2005 2:12 pm    Post subject: Jail Reply with quote

I've successfully set up a chroot jail for users that can log into my server, however there is one small thing i would like to change with the setup if possible:

When logged into the chroot jail, the user is made aware of the fact that they are when they type a command that is not recognised by bash. i.e. the following happens:

Code:
-jail: fk: command not found


whereas normally, this happens:

Code:
bash: fk: command not found


So, what I would like to do is make the chrooted 'bash' actually say that it is bash, rather than '-jail'.

Any help on this would be greatly appreciated :)


P.S. I know that security through obscurity should not be relied on, but one more thing for people to figure out can't be bad, right ;)
Back to top
View user's profile Send private message
ultrabug
Developer
Developer


Joined: 24 Jan 2005
Posts: 698
Location: Paris

PostPosted: Fri Nov 04, 2005 5:09 pm    Post subject: Reply with quote

Hi,


I suggest you check out your passwd file to see what bash your users actually use

Maybe adding an alias with the right name would then work and get the appropriate answer ?

Hope that helps

Good luck
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum