creating user on SUSE Linux

 
Thread Tools Search this Thread
Operating Systems Linux SuSE creating user on SUSE Linux
# 8  
Old 08-13-2010
The FTP server isn't going to do real user logins. If you want a chroot for an FTP user it's the FTP server's job.

For the third time:

A lot depends on your FTP server. What is your FTP server?
# 9  
Old 08-16-2010
I dont think i quite understood what you meant by ftp server.

But i use sftp /sshd
# 10  
Old 08-16-2010
Quote:
The problem is that the user will mostly use FileZilla to ftp his files in the testfolder.
sftp is not ftp; a one-letter difference changes the problem significantly. Smilie A chroot may still be possible but I'll need to research how.

---------- Post updated at 02:01 PM ---------- Previous update was at 01:27 PM ----------

Here are several solutions for chrooting sftp users.
# 11  
Old 08-17-2010
thanks..at least some light at the end of the tunnelSmilie.

Well as i said earlier

I have already set up a chroot jail

But im not adding a user to the jail properly cause he can still view other folders

May be im not not able to create a shell for him
# 12  
Old 08-17-2010
You might want to start over and follow their instructions. Setting up a chroot can be tricky.
# 13  
Old 08-18-2010
I have setup a jail following a tutorial i found on the net
int main ( void ) » chroot shell tutorial

It looks good..

But when i execute
sudo /usr/bin/chroot /home/luser /bin/su - luser (which is part of the steps)

i get

/bin/su: incorrect password

SmilieSmilie

Any idea
# 14  
Old 08-18-2010
It probably means what it says: incorrect password. On the other hand, this dangerous (imho) tutorial has you editing /etc/passwd by hand so it's also possible you made a mistake in editing it, or their hand-done changes are incorrect or incompatible with your login system. It's better to use usermod to change a users' setup...

One thing I don't see it doing is adding the login wrapper to /etc/shells, if /etc/shells exists on your system it's probably necessary to add it.

Be sure to complete all steps of the tutorial, including the changes to sudoers.

Last edited by Corona688; 08-18-2010 at 04:04 PM..
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