Advertisement

02.14.2006 at 12:58PM PST, ID: 21736674
[x]
Attachment Details

SFTP and default file permissions (umask?)

Asked by DrNikon224 in Linux Administration

Tags: umask, sftp, file, permissions

I have a Linux (Red Hat Enterprise) webserver that hosts a collection of websites. This system uses kerberos authentication to allow me to create local accounts for Active Directory users, and then authenticate those accounts off the kerberos server. None of the login accounts have home directories, but each of the websites have their own local user (/home/site) directory and group (I created the "site" user, but never ran "passwd" to assign a password - you cannot login using the "site" accounts). There are multiple site administrators for a few of the sites, and they are each members of the site's group.

The problem that I'm running into is that even though Billy uploads a file to /home/site/www, and the ownership is "billy:site", the permissions default to 644, making Billy the only user able to edit that file, instead of granting access to all users in the "site" group (664). Is it possible to specify a default file permission mask for files uploaded via SFTP so that each of the users (who aren't in any way linux-ly gifted) don't have to specifically assign group rights through the SFTP client for the files they upload?

I'd prefer to do this without individual user home directories if at all possible - for housekeeping's sake - less clutter (users don't need their own home directories).

Your help is appreciated.Start Free Trial
[+][-]02.14.2006 at 07:15PM PST, ID: 15957428

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.09.2006 at 10:00PM PST, ID: 16152323

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.10.2006 at 12:07AM PST, ID: 16152691

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Linux Administration
Tags: umask, sftp, file, permissions
Sign Up Now!
Solution Provided By: yuzh
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.04.2006 at 07:01AM PDT, ID: 16371115

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]04.08.2006 at 04:01PM PDT, ID: 16409307

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32