Link to home
Start Free TrialLog in
Avatar of Trigger_Hippie
Trigger_Hippie

asked on

creating read-only ftp user

Hi I am running Solaris.  

I just wanted to know if there is a way to create a read-only user account that allows the user to ftp files out.  

Thanks in advance :)
Avatar of gripe
gripe

Hi Trigger_Hippie,

Yes, just change the permissions to read-only for the directory (and subdirectories) that user has access to.


chmod -R 440 /where/your/ftpusers/home/directory/is

Will change all permissions under /where/your/ftpusers/home/directory/is to user=read, group=read, other=none

Be careful with the -R option.. it's recursive (IE: it changes the directory you specify and ALL subdirectories and files to the same permissions)
ack i'm sorry.. i mistyped.. you'll need to give the user execute access to the directories so that he/she can change directory to them.

chmod 550 on the directory rather than 440 (440 on the files)
Avatar of Trigger_Hippie

ASKER

I'm a bit of a newbie at this so bare with me...

"Yes, just change the permissions to read-only for the directory (and subdirectories) that user has access to."

how do you specify what directories a user/group can access?
I'm a bit of a newbie at this so bare with me...

"Yes, just change the permissions to read-only for the directory (and subdirectories) that user has access to."

how do you specify what directories a user/group can access?

Would i have to chmod o= /directory/ to all directories I don't want the user/group to access?  Or is there a way I can just specify this user/group can only access /this/directory/ ?
ASKER CERTIFIED SOLUTION
Avatar of gripe
gripe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial