* [gentoo-user] /etc/profile.d/ and non-root users
@ 2006-09-13 12:26 Pupeno
2006-09-13 12:47 ` Alan McKinnon
2006-09-13 13:34 ` Etaoin Shrdlu
0 siblings, 2 replies; 10+ messages in thread
From: Pupeno @ 2006-09-13 12:26 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 254 bytes --]
Hello,
I have created a file
/etc/profile.d/aliases.sh
containing
aliases.sh
and when I log in as root it is clearly loaded. But when I log in as my normal
user, it is not. Any ideas ?
--
Pupeno <pupeno@pupeno.com> (http://pupeno.com)
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] /etc/profile.d/ and non-root users
2006-09-13 12:26 [gentoo-user] /etc/profile.d/ and non-root users Pupeno
@ 2006-09-13 12:47 ` Alan McKinnon
2006-09-13 13:34 ` Etaoin Shrdlu
1 sibling, 0 replies; 10+ messages in thread
From: Alan McKinnon @ 2006-09-13 12:47 UTC (permalink / raw
To: gentoo-user
On Wednesday 13 September 2006 14:26, Pupeno wrote:
> Hello,
> I have created a file
>
> /etc/profile.d/aliases.sh
>
> containing
>
> aliases.sh
>
> and when I log in as root it is clearly loaded. But when I
> log in as my normal user, it is not. Any ideas ?
I have absolutely no idea and most likely neither will anyone
else. But if you post the results of these commands, we will be
in a better position to help you:
ls -al /etc/profile.d/aliases.sh
cat /etc/profile.d/aliases.sh
alan
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] /etc/profile.d/ and non-root users
2006-09-13 13:34 ` Etaoin Shrdlu
@ 2006-09-13 13:15 ` Bo Ørsted Andresen
2006-09-13 13:49 ` Etaoin Shrdlu
2006-09-15 23:42 ` Pupeno
0 siblings, 2 replies; 10+ messages in thread
From: Bo Ørsted Andresen @ 2006-09-13 13:15 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 476 bytes --]
On Wednesday 13 September 2006 15:34, Etaoin Shrdlu wrote:
> Looking at the shell initialization files, seems that the only script
> which checks the contents of /etc/profile.d and sources some files from
> there is /etc/csh.cshrc (unless I missed some).
You are missing /etc/profile. Only thing this requires is the file is located
in /etc/profile.d, ends on .sh and is readable and sourceable by the user.
Probably just a permissions problem.
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] /etc/profile.d/ and non-root users
2006-09-13 12:26 [gentoo-user] /etc/profile.d/ and non-root users Pupeno
2006-09-13 12:47 ` Alan McKinnon
@ 2006-09-13 13:34 ` Etaoin Shrdlu
2006-09-13 13:15 ` Bo Ørsted Andresen
1 sibling, 1 reply; 10+ messages in thread
From: Etaoin Shrdlu @ 2006-09-13 13:34 UTC (permalink / raw
To: gentoo-user
On Wednesday 13 September 2006 14:26, Pupeno wrote:
> Hello,
> I have created a file
>
> /etc/profile.d/aliases.sh
>
> containing
>
> aliases.sh
>
> and when I log in as root it is clearly loaded. But when I log in as
> my normal user, it is not. Any ideas ?
Looking at the shell initialization files, seems that the only script
which checks the contents of /etc/profile.d and sources some files from
there is /etc/csh.cshrc (unless I missed some). So, is your root account
using csh as its default shell and the normal user instead uses bash?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] /etc/profile.d/ and non-root users
2006-09-13 13:15 ` Bo Ørsted Andresen
@ 2006-09-13 13:49 ` Etaoin Shrdlu
2006-09-13 14:20 ` Lukasz Pawelczyk
2006-09-15 23:42 ` Pupeno
1 sibling, 1 reply; 10+ messages in thread
From: Etaoin Shrdlu @ 2006-09-13 13:49 UTC (permalink / raw
To: gentoo-user
On Wednesday 13 September 2006 15:15, Bo Ørsted Andresen wrote:
> You are missing /etc/profile. Only thing this requires is the file is
> located in /etc/profile.d, ends on .sh and is readable and sourceable
> by the user. Probably just a permissions problem.
This is strange: my /etc/profile doesn't have any references
to /etc/profile.d (that's why I wrote the previous email).
In the past, I used to customize that file a lot, so at some point I
probably told etc-update to keep my version.
Indeed, looking at /etc/profile on another box, I found
the /etc/profile.d stuff.
Thanks for the correction.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] /etc/profile.d/ and non-root users
2006-09-13 13:49 ` Etaoin Shrdlu
@ 2006-09-13 14:20 ` Lukasz Pawelczyk
2006-09-15 23:43 ` Pupeno
0 siblings, 1 reply; 10+ messages in thread
From: Lukasz Pawelczyk @ 2006-09-13 14:20 UTC (permalink / raw
To: gentoo-user
On Wed, Sep 13, 2006 at 03:49:51PM +0200, Etaoin Shrdlu wrote:
> On Wednesday 13 September 2006 15:15, Bo ??rsted Andresen wrote:
>
> > You are missing /etc/profile. Only thing this requires is the file is
> > located in /etc/profile.d, ends on .sh and is readable and sourceable
> > by the user. Probably just a permissions problem.
>
> This is strange: my /etc/profile doesn't have any references
> to /etc/profile.d (that's why I wrote the previous email).
>
> In the past, I used to customize that file a lot, so at some point I
> probably told etc-update to keep my version.
>
> Indeed, looking at /etc/profile on another box, I found
> the /etc/profile.d stuff.
Just remember that those aliases will stay only in login shell, any
other shell level wont keep them. There should be something like
/etc/shrc.d/ sourced by bashrc for such things.
--
Regards
Lukasz Pawelczyk
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] /etc/profile.d/ and non-root users
2006-09-13 13:15 ` Bo Ørsted Andresen
2006-09-13 13:49 ` Etaoin Shrdlu
@ 2006-09-15 23:42 ` Pupeno
2006-09-16 1:06 ` Drew
1 sibling, 1 reply; 10+ messages in thread
From: Pupeno @ 2006-09-15 23:42 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 471 bytes --]
On Wednesday 13 September 2006 13:15, Bo Ørsted Andresen wrote:
> You are missing /etc/profile. Only thing this requires is the file is
> located in /etc/profile.d, ends on .sh and is readable and sourceable by
> the user. Probably just a permissions problem.
I think I am not missing any condition:
$ ls -al /etc/profile.d/aliases.sh
-rw-r--r-- 1 root root 33 2006-09-09 12:56 /etc/profile.d/aliases.sh
--
Pupeno <pupeno@pupeno.com> (http://pupeno.com)
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] /etc/profile.d/ and non-root users
2006-09-13 14:20 ` Lukasz Pawelczyk
@ 2006-09-15 23:43 ` Pupeno
0 siblings, 0 replies; 10+ messages in thread
From: Pupeno @ 2006-09-15 23:43 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 420 bytes --]
On Wednesday 13 September 2006 14:20, Lukasz Pawelczyk wrote:
> Just remember that those aliases will stay only in login shell, any
> other shell level wont keep them. There should be something like
> /etc/shrc.d/ sourced by bashrc for such things.
Probably this is the problem. When I run the Konsole it is not a login shell
and when I su it is.
Thanks.
--
Pupeno <pupeno@pupeno.com> (http://pupeno.com)
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] /etc/profile.d/ and non-root users
2006-09-15 23:42 ` Pupeno
@ 2006-09-16 1:06 ` Drew
2006-09-16 9:13 ` Etaoin Shrdlu
0 siblings, 1 reply; 10+ messages in thread
From: Drew @ 2006-09-16 1:06 UTC (permalink / raw
To: gentoo-user
> I think I am not missing any condition:
>
> $ ls -al /etc/profile.d/aliases.sh
> -rw-r--r-- 1 root root 33 2006-09-09 12:56 /etc/profile.d/aliases.sh
Assuming this is supposed to be a shell script try changing the file
so it is rwxr-xr-x (755). ex: chmod 755 /etc/profile.d/aliases.sh
For a script to be executed it must have the 'x' flag set. I get
bitten by this every so often when creating new scripts.
-Drew
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] /etc/profile.d/ and non-root users
2006-09-16 1:06 ` Drew
@ 2006-09-16 9:13 ` Etaoin Shrdlu
0 siblings, 0 replies; 10+ messages in thread
From: Etaoin Shrdlu @ 2006-09-16 9:13 UTC (permalink / raw
To: gentoo-user
On Saturday 16 September 2006 03:06, Drew wrote:
> Assuming this is supposed to be a shell script try changing the file
> so it is rwxr-xr-x (755). ex: chmod 755 /etc/profile.d/aliases.sh
>
> For a script to be executed it must have the 'x' flag set. I get
> bitten by this every so often when creating new scripts.
While you are correct for general cases, at least in this case the
execute bit does not need to be on, since the script is not run directly
but instead is sourced from inside another script.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-09-16 8:58 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-13 12:26 [gentoo-user] /etc/profile.d/ and non-root users Pupeno
2006-09-13 12:47 ` Alan McKinnon
2006-09-13 13:34 ` Etaoin Shrdlu
2006-09-13 13:15 ` Bo Ørsted Andresen
2006-09-13 13:49 ` Etaoin Shrdlu
2006-09-13 14:20 ` Lukasz Pawelczyk
2006-09-15 23:43 ` Pupeno
2006-09-15 23:42 ` Pupeno
2006-09-16 1:06 ` Drew
2006-09-16 9:13 ` Etaoin Shrdlu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox