How to create a new ftp user account with limited access..?


 
Thread Tools Search this Thread
Operating Systems Solaris How to create a new ftp user account with limited access..?
# 1  
Old 08-24-2006
How to create a new ftp user account with limited access..?

Hi All,

I'm using solaris 2.8, and I want create a new ftp user account with the following restrictions:
- Have only ftp access, no telnet or rlogin
- Have restricted access to its home directory example /export/home/newuser
- Deny access to any other directory.

Thanks for your help,

Jeremy
# 2  
Old 08-30-2006
Hi gents., any help would be appreciated....

Jeremy
# 3  
Old 08-30-2006
There are a couple ways you can go.

You can use a restricted shell to contain the user in that user's directory. There's one rssh shell out there that allows only scp and sftp. You'd have to compile it. I have enver used it, so I don't know how well it works.

If you have many users who need to be set that way, you may want to configure an anonymous ftp server. That way everyone can log into the ftp directory using "anonymous" as a the user name. That way users will have a login to the ftp server, but not a user login.

You can also transfer the files somewhere else. If you have only one user that needs files, rather than you giving him a login into your box, have the user give you a login into the user's workstation and automate a file transfer to it via script. Or if you have many users, you can designate a workstation as a repository and transfer all files there. That way, you don't care what happens to the workstation.

It just depends on your particular situatoin.
# 4  
Old 08-30-2006
To restrict ftp we usually just change the ftp daemon to something like proftpd which allows you to configure different option for different user/directories.
# 5  
Old 08-31-2006
Thanks for your feedback, highly appreciated.

In fact here are my limitation,
- I don't have a compiler installed on the machine, so I can't install a thired party ftp software, like proftp, or wu-ftpd
- Also, for security reason the anonymous ftp won't be implemented.

So far so good, I succeded in implmenting part of the ftp, howevr I'm having problems restricting the user to it's home directory.

So how do we jail(or chroot) the guest ftp user?
# 6  
Old 08-31-2006
pretty sure that:

1. You can find proftp as a .pkg { have you looked at what's on sunfreeware.com ? }
2. Chroot jailed ftp is documented at http://www.sun.com/bigadmin
# 7  
Old 09-01-2006
Thanks reborg for your precious help.

Jeremry
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Create an user with limited permission on LUbuntu

Hello folks, I pretend install Lubuntu 16.04 LTS in pc for any employer use this pc! I think create an user with, only, permission to read and write, 770. This is the best scenario? I think create this user through terminal, because I pretend create a script, and I don't where wizard has... (0 Replies)
Discussion started by: enodev
0 Replies

2. HP-UX

How to create a user in UNIX with some limited permissions?

As i know, Unix or Linux only manages 2 type of user: root user or normal user. All users with userID=0 will have all administration permissions like root user with the system. In my case, i want to create a new user in HP-UNIX environment with all root permissions only one exception that this... (5 Replies)
Discussion started by: hieucn1404
5 Replies

3. UNIX for Advanced & Expert Users

How to create user with access only to one folder through ftp?

Hi all, Can someone help me with creating user with special privilegies? I need to create user who will have access ONLY to one folder (like /etc/log/) through ftp (read only access) and which will not have any other ways to log in like telnet, ssh etc.? (5 Replies)
Discussion started by: nypreH
5 Replies

4. Solaris

User with limited access to one directory

is there a way to create a user and limit him to read,write and execute only in one direcotry. the directory is already exsist and it belongs to dba group. i would like to make this user can't even cd to another directory or even if he can he cant do anything in the other directories. if... (7 Replies)
Discussion started by: q8devilish
7 Replies

5. Solaris

Creating User account with limited permission

Hi All, I want to create an user account which can only excute "df -kh" and "prstat -a" command. The user will not be able to perform "rm" and other critical commands. Is there a way to do it? rgds, Ronny (2 Replies)
Discussion started by: ronny_nch
2 Replies

6. Shell Programming and Scripting

how i can make one ip access to ftp account and deny others

HI I want to make only one IP can access to ftp acount in cpanel or by shell can any body help me ? (1 Reply)
Discussion started by: elkadrey
1 Replies

7. UNIX for Dummies Questions & Answers

user with limited access

dear guys, sorry for asking a noob :p question, tried to search the forum for an answer but couldn't find one, i am running solaris 10 and i would like to create a user with limited access to view only one directory, the directory already exist, is this possible:confused:? thanks and regards (4 Replies)
Discussion started by: q8devilish
4 Replies

8. UNIX for Advanced & Expert Users

create user - limited priviledge

i want to create unix user account (usera) for outsider so that they can run program that exist in /application/xxx/. The account have their own home directory (/home/usera). But on the same time the user cannot run any application/command either than in /application/xxx/. User can only... (1 Reply)
Discussion started by: golden_shooter
1 Replies

9. UNIX for Dummies Questions & Answers

create user - limited priviledge

i want to create unix user account (usera) for outsider so that they can run program that exist in /application/xxx/. The account have their own home directory (/home/usera). But on the same time the user cannot run any application/command either than in /application/xxx/. User can only... (1 Reply)
Discussion started by: golden_shooter
1 Replies

10. UNIX for Dummies Questions & Answers

create or modify user account to have same access as root

Is there a way to create or better yet modify a user account so it has the same privs as root? (6 Replies)
Discussion started by: xadamz23
6 Replies
Login or Register to Ask a Question