creating user on SUSE Linux

 
Thread Tools Search this Thread
Operating Systems Linux SuSE creating user on SUSE Linux
# 15  
Old 08-19-2010
Well i have added the /bin/chrootshell in /etc/shells

I have checked the sudoers , i have added the user there

luser ALL= NOPASSWD: /usr/bin/chroot, /bin/su - luser

I still have same problem

SmilieSmilieSmilieSmilie
# 16  
Old 08-19-2010
You have substituted the username you wanted for "luser", yes? Or if you created a new "luser", did you give it a password? If you created a new luser, how did you do so?
# 17  
Old 08-20-2010
useradd -d /tmp -s /bin/chrootshell luser

passwd luser

and i gave a password

I followed the steps in the tutorial

Thats weird
# 18  
Old 08-20-2010
These instructions are faulty or obsolete, I think. They are five years old, and very rough, and prone to break over minor changes in the login system.

The link someone replied to it with looks more promising. sftp-only chroot jail. It also says openssh v5 and newer supports chroot natively, something I didn't know.
# 19  
Old 08-21-2010
Well, i used a script (attached) which i found on the internet and which seems to works perferctly. it creates the user and it locks him to his home directory.
remember the user needs to be able to login.He will be login though thru an application FileZilla to sftp.

But I tried to create the jail manually cause i need to understand what is really happening. The jail gets created but when it comes to su - user..
it gets the error

/bin/su : incorrect password

I dont know if im missing a library..Im tired of it now..
# 20  
Old 08-23-2010
I still suspect the passwd files inside your chroot.

How about not using random tutorials and suspicious scripts dredged from the internet and trying openssh's built-in chroot feature instead? That will probably work a lot better.
# 21  
Old 08-24-2010
openshh built in chroot ????

Where do i start ?
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Prevent user from creating new user from his login

Hi Experts, Need your support Redhat 6.5 I want to create a user with all(read, write, execute) privileges except that user should not be able to create any new user from his login to perform any task. (10 Replies)
Discussion started by: as7951
10 Replies

2. Shell Programming and Scripting

How to write bash script for creating user on multiple Linux hosts?

I wonder whether someone can help me with what I'm trying to achieve Basically, the objective is one script to create new user on more than 70 linux hosts if required. Everything works apart from the highlighted part. It gave me an output passwd: Unknown user name ''. when try to set... (35 Replies)
Discussion started by: fugeulu
35 Replies

3. UNIX for Dummies Questions & Answers

[LINUX] Creating new user accounts

I've had Linux when I was young, on one of our first computers and learned it pretty quickly... However, I've been working on Windows for about 7 years now and just made the switch back to Linux, Mandrake 9.1. So I have some problem with creating new user accounts. I could create one, but once I... (3 Replies)
Discussion started by: Arendo
3 Replies

4. UNIX for Dummies Questions & Answers

new SuSE User

Hello everybody! I'm Fabian from Germany near Hannover. I bought SuSE 7.1 before 3 days . I want use SuSE as a PHPserver! (My english is very bad) Now my question: Is SuSE or Rad Hat better for this problem? On my system is always run SuSE 7.1 now, but I think Rad Hat is better for this... (4 Replies)
Discussion started by: Fabian
4 Replies
Login or Register to Ask a Question