creating user on SUSE Linux

 
Thread Tools Search this Thread
Operating Systems Linux SuSE creating user on SUSE Linux
# 1  
Old 08-09-2010
creating user on SUSE Linux

Hi

I need to create a user who can have access on only one folder.
for example I created a user "test" . he should have access only on folder
/testfolder.

The problem is that the user will mostly use FileZilla to ftp his files in the testfolder.

In the fileZilla , i want him to be unable to read other folder than his own that is /testfolder. he should not be able to access any other folders under / .

Can anyone guide me

Thx
# 2  
Old 08-09-2010
If your a root , or if you have root access . you can change the File or folder permission
using chmod .....so other users can't able to read
# 3  
Old 08-09-2010
I dont think i have quite understood what u meant but

Must i change all right on all the other folders to stop the testuser from accessing it

is there not a way to grant the group "testuser" in which test is a user access only on the testuser folder.
# 4  
Old 08-09-2010
A lot depends on your FTP server. I think proftpd will let you restrict a user to one particular directory. You might even be able to arrange a chroot jail.
# 5  
Old 08-09-2010
The thing is a user need to ftp his files in a particular folder. I just dont want him to mess up with other files ..
creating chroot jail (im a bit new to suse linux) might b a prob for me. On that same server i have oracle / weblogic and all..

Thats why, i want to do it a simple way..

Like for example the group "testuser" should SEE ONLY its folder.

It seems he cannot delete files not owned by him..thats fine. But he can still create new files in directories owned by root for instance.

Any idea....
# 6  
Old 08-09-2010
I repeat: A lot depends on your FTP server. (What is it?) I think proftpd will let you restrict a user to one particular directory, and might even be able to arrange a chroot jail.

That would be highly secure -- as far as his login would be concerned, directories above the one he's chrooted into simply wouldn't exist. If you want to restrict him to one and only one directory and not even know others exist, chroot is what you want.

But, doing that depends on your FTP server.

Being able to create files in directories owned by root is normal if the directory is world-writable or he belongs to a group which is allowed to write to it. WARNING -- if he is able to create files in a directory, he may be able to delete files owned by anyone there as well! This is because file deletion is controlled by directory write permissions, not file ownership. (There are some obscure options in some filesystems to change this behavior.) An example in my home directory:
Code:
$ sudo touch something
Password:
$ ls -l something
-rw-r--r-- 1 root root 0 Aug  9 10:34 something
$ rm something
rm: remove write-protected regular empty file `something'? y
$

Make sure he doesn't belong to any groups he doesn't need to belong to.

Last edited by Corona688; 08-09-2010 at 01:37 PM..
# 7  
Old 08-12-2010
i have succeeded in creating a chroot jail

chroot /testccs ..it works

clientsyslogng:/ # chroot /testccs
bash-3.1# ls


Now can you please explain to me how to attach a user login to it

For example testuser when he logs in ..he should login into /test (home directory)
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