* Setting permissions via SSH upload to 777
2004-04-13 17:29 Remote X Little, Chris
@ 2004-10-13 18:43 ` Eve Atley
2004-10-13 19:23 ` Ray Olszewski
0 siblings, 1 reply; 4+ messages in thread
From: Eve Atley @ 2004-10-13 18:43 UTC (permalink / raw)
To: linux-newbie
When someone SSH's into our Redhat Linux box, all files that are
uploaded are set to read-only. How can I set it so files are
automatically set to 777, or 775 at the very least?
Thanks,
Eve
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Setting permissions via SSH upload to 777
[not found] <15DCB059E3814E448A1CFFF04F78F7A703917246@s99mail08>
@ 2004-10-13 19:11 ` Eve Atley
0 siblings, 0 replies; 4+ messages in thread
From: Eve Atley @ 2004-10-13 19:11 UTC (permalink / raw)
To: 'Little, Chris'; +Cc: linux-newbie
Will that allow any read/write? I suppose not at 555. Is there another
way to give write ability, short of the user setting it him/herself?
At any rate, how can I go about giving the most permissions upon upload?
Thanks again,
Eve
-----Original Message-----
From: Little, Chris [mailto:Chris.Little@okdhs.org]
Sent: Wednesday, October 13, 2004 3:07 PM
To: 'eatley@wowcorp.com'
Subject: RE: Setting permissions via SSH upload to 777
At best, I believe, you will get 555. I don't think it will allow the
execute bit to be set.
-----Original Message-----
From: Eve Atley [mailto:eatley@wowcorp.com]
Sent: Wednesday, October 13, 2004 1:43 PM
To: linux-newbie@vger.kernel.org
Subject: Setting permissions via SSH upload to 777
When someone SSH's into our Redhat Linux box, all files that are
uploaded are set to read-only. How can I set it so files are
automatically set to 777, or 775 at the very least?
Thanks,
Eve
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie"
in the body of a message to majordomo@vger.kernel.org More majordomo
info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Setting permissions via SSH upload to 777
@ 2004-10-13 19:13 Little, Chris
0 siblings, 0 replies; 4+ messages in thread
From: Little, Chris @ 2004-10-13 19:13 UTC (permalink / raw)
To: linux-newbie
Sorry. The reply-to wasn't set to the list and I didn't check.
Brain outgassing there. I should have said 666, not 555. Yes it will allow
r/w, just not execute.
-----Original Message-----
From: Eve Atley [mailto:eatley@wowcorp.com]
Sent: Wednesday, October 13, 2004 2:11 PM
To: 'Little, Chris'
Cc: linux-newbie@vger.kernel.org
Subject: RE: Setting permissions via SSH upload to 777
Will that allow any read/write? I suppose not at 555. Is there another
way to give write ability, short of the user setting it him/herself?
At any rate, how can I go about giving the most permissions upon upload?
Thanks again,
Eve
-----Original Message-----
From: Little, Chris [mailto:Chris.Little@okdhs.org]
Sent: Wednesday, October 13, 2004 3:07 PM
To: 'eatley@wowcorp.com'
Subject: RE: Setting permissions via SSH upload to 777
At best, I believe, you will get 555. I don't think it will allow the
execute bit to be set.
-----Original Message-----
From: Eve Atley [mailto:eatley@wowcorp.com]
Sent: Wednesday, October 13, 2004 1:43 PM
To: linux-newbie@vger.kernel.org
Subject: Setting permissions via SSH upload to 777
When someone SSH's into our Redhat Linux box, all files that are
uploaded are set to read-only. How can I set it so files are
automatically set to 777, or 775 at the very least?
Thanks,
Eve
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie"
in the body of a message to majordomo@vger.kernel.org More majordomo
info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Setting permissions via SSH upload to 777
2004-10-13 18:43 ` Setting permissions via SSH upload to 777 Eve Atley
@ 2004-10-13 19:23 ` Ray Olszewski
0 siblings, 0 replies; 4+ messages in thread
From: Ray Olszewski @ 2004-10-13 19:23 UTC (permalink / raw)
To: eatley, linux-newbie
At 02:43 PM 10/13/2004 -0400, Eve Atley wrote:
>When someone SSH's into our Redhat Linux box, all files that are
>uploaded are set to read-only. How can I set it so files are
>automatically set to 777, or 775 at the very least?
First, you shouldn't. It is NEVER smart, from a security standpoint, to
create a *default* condition where a file is writable by someone other than
its owner. There are special situations in which you need to do this, of
course, but making it the system *default* for uploaded files -- especially
for executables, but even for config files -- is asking for trouble.
Second, are you talking here about scp transfers or something else? On a
case-by-case basis, a user of scp can (on the client end) use the -p flag
to preserve permissions so they match the settings on the source system.
Third, here I find that scp transfers default to 755 (or 644 if the source
file wasn't executable), a decent default setting. This is (or should be)
derived from the default umask setting, which on my system is set in
/etc/profile ... but can be modified on a user-by-user basis in
/etc/.bash_profile. The method of setting these defaults varies bit among
Linux distrbutions (I'm running Debian-Sid here), so Red Hat may use
.profile or .bashrc or some other variant for the user-level settings, and
/etc/login.defs for the systemwide settings. This is also shell specific,
so the details will be different if you don't use bash.
There is also a command-line app "umask" you can use to set this value for
a user. The only man page I can find for umask is a section-2 (programming
calls) entry, but it does explain how umask values relate to permissions.
BTW, I just saw your other message, and that respondant had write and
execute mixed up. 555 is r-xr-xr-x; 666 is rw-rw-rw-.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-10-13 19:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <15DCB059E3814E448A1CFFF04F78F7A703917246@s99mail08>
2004-10-13 19:11 ` Setting permissions via SSH upload to 777 Eve Atley
2004-10-13 19:13 Little, Chris
-- strict thread matches above, loose matches on Subject: below --
2004-04-13 17:29 Remote X Little, Chris
2004-10-13 18:43 ` Setting permissions via SSH upload to 777 Eve Atley
2004-10-13 19:23 ` Ray Olszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox