1835202 Members
2579 Online
110077 Solutions
New Discussion

Re: ftp question

 
Charles McCary
Valued Contributor

ftp question

Group, I have an unusual ftp question. I have a request for an account (a real user in ftpaccess terms) that should have it's own home directory and have access to two other directories as well. For example the directories that this "ftpuser" should be able to "put" files to are:

/home/ftpuser (it's homedir)
/app/appdownload
/app/app1/appdownload

Is this configurable using ftpaccess without setting up something globally for all users?

Also - if this user needed to be able to access the system via telnet as well (after setting up the restricted ftp) would that be possible?

thanks in advance,

c

8 REPLIES 8
Adam J Markiewicz
Trusted Contributor

Re: ftp question

Hi

The first solution that comes to my mind is creating separate group for these directories. You give an access to the directories to this group.
If you want to give any user an access you add him to that group.

I don't know if this makes you happy, as it's kind of 'global'.

Good luck

Adam
I do everything perfectly, except from my mistakes
Charles McCary
Valued Contributor

Re: ftp question

How would you go about doing this in the ftpaccess file without effecting all users - forgive my ignorance, just started researching ftpaccess this morning. I have a good grasp of how to set things up but not of relationships of the lines in this file.
Rita C Workman
Honored Contributor

Re: ftp question

Well if the only user to use those 3 directories is that ftpuser than have you tried setting your group and filepermissions for the ftpuser to a special group of its own, and then do a chgrp for the /app directories to the same thing.

Just a thought,
Rita
Charles McCary
Valued Contributor

Re: ftp question

Rita,

unfortunately these dirs are not used just by this user.

thanks,
c
H.Merijn Brand (procura
Honored Contributor

Re: ftp question

Access Control Lists might help here

man chacl

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
John Palmer
Honored Contributor

Re: ftp question

Rather than use the full pathnames for the /app directories, have you considered soft linking them from /home/ftpuser? You'd still have to sort out permissions though.

Regards,
John
Adam J Markiewicz
Trusted Contributor

Re: ftp question

Make special group for users of these directories.
Do chgrp and adjust group permisions you want for these directories.
In /etc/group add to this group anyone you want to give the access.

Good luck

Adam
I do everything perfectly, except from my mistakes
Charles McCary
Valued Contributor

Re: ftp question

soft links didn't work - got an error about file not found - worked as root, but when ftp'd to the box as user got the error.