View previous topic :: View next topic |
Author |
Message |
ColdFusion n00b
Joined: 06 Jan 2004 Posts: 48
|
Posted: Fri Nov 04, 2005 2:12 pm Post subject: Jail |
|
|
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 |
|
|
ultrabug Developer
Joined: 24 Jan 2005 Posts: 698 Location: Paris
|
Posted: Fri Nov 04, 2005 5:09 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|