Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

user restriction

Meirone Luca
Occasional Advisor

user restriction

hi all,
I've got a problem with a user ftp!
in file etc/ftdp/ftpaccess i can apply aliases only a command cd, I need also apply to put or get command!
how I will have to do?
someone can help me, please
best regards
Luca
Meirone Luca
5 REPLIES
Paula J Frazer-Campbell
Honored Contributor

Re: user restriction

Hi

From man ftopaccess:-


Permission Capabilities
chmod yes|no typelist

delete yes|no typelist

overwrite yes|no typelist

rename yes|no typelist

umask yes|no typelist

Allows or disallows the ability to perform the specified
function. By default, all users are allowed.

typelist is a comma-separated list of any of the keywords
anonymous, guest and real.

Paula
If you can spell SysAdmin then you is one - anon
Meirone Luca
Occasional Advisor

Re: user restriction

my user have home_directory / and has a store procedure that put a file in /home/home_ftp/test/ and the path is writen in a table.
I want to modify home dir of user (for security) how do i do, unless modify store procedure?
thanks
Meirone Luca
Vincent Farrugia
Honored Contributor

Re: user restriction

Hello,

According to the man ftpaccess:

"Aliases only apply to the cd command."

So I guess you cannot alias other commands... sorry.

HTH,
Vince
Tape Drives RULE!!!
Paula J Frazer-Campbell
Honored Contributor

Re: user restriction

hi

In /usr/newconfig/etc/ftpd/ftpaccess
is an example file which should point you in the right direction.

Paula
If you can spell SysAdmin then you is one - anon
Vincent Farrugia
Honored Contributor

Re: user restriction

Hello,

Quoting man ftpaccess:

"The user's home directory must be properly set up, exactly as anonymous FTP would be.

The home directory field of the passwd entry is divided into two directories.

The first field is the root directory which will be the argument to the chroot call.

The second half is the user's home directory relative to the root directory. The two halves are separated by a /./.

Example:

In the /etc/passwd file, the sample entry is:
guest1::100:92:Guest Account:/ftp/./incoming:/etc/ftponly

When guest1 successfully logs in, the ftp server will chroot
(/ftp) and then chdir (/incoming). The guest user will only be able to access the directory structure under /ftp (which will look and act as / to guest1), just as an anonymous FTP user would."

HTH,
Vince
Tape Drives RULE!!!