Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 50755 Details for
Bug 81262
/etc/profile checks that user is called root, instead of checking uid 0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Test for $UID instead of `whoami`
profile_uid.patch (text/plain), 352 bytes, created by
Yosef Meller
on 2005-02-08 10:35:00 UTC
(
hide
)
Description:
Test for $UID instead of `whoami`
Filename:
MIME Type:
Creator:
Yosef Meller
Created:
2005-02-08 10:35:00 UTC
Size:
352 bytes
patch
obsolete
>--- /etc/profile 2005-02-08 20:32:09.000000000 +0200 >+++ /etc/profile.orig 2005-02-08 20:30:11.000000000 +0200 >@@ -9,7 +9,7 @@ > # 077 would be more secure, but 022 is generally quite realistic > umask 022 > >-if [ "$UID" = "0" ] >+if [ `/usr/bin/whoami` = 'root' ] > then > # Do not set PS1 for dumb terminals > if [ "$TERM" != 'dumb' ] && [ -n "$BASH" ]
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 81262
: 50755