Re: [gentoo-user] /etc/profile.d/ and non-root users

2006-09-16 Thread Etaoin Shrdlu
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

Re: [gentoo-user] /etc/profile.d/ and non-root users

2006-09-15 Thread Pupeno
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:

Re: [gentoo-user] /etc/profile.d/ and non-root users

2006-09-15 Thread Pupeno
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

Re: [gentoo-user] /etc/profile.d/ and non-root users

2006-09-15 Thread Drew
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

[gentoo-user] /etc/profile.d/ and non-root users

2006-09-13 Thread Pupeno
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 [EMAIL PROTECTED] (http://pupeno.com) pgp8V9wgM5BgU.pgp Description: PGP signature

Re: [gentoo-user] /etc/profile.d/ and non-root users

2006-09-13 Thread Alan McKinnon
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

Re: [gentoo-user] /etc/profile.d/ and non-root users

2006-09-13 Thread Etaoin Shrdlu
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

Re: [gentoo-user] /etc/profile.d/ and non-root users

2006-09-13 Thread Bo Ørsted Andresen
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

Re: [gentoo-user] /etc/profile.d/ and non-root users

2006-09-13 Thread Etaoin Shrdlu
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

Re: [gentoo-user] /etc/profile.d/ and non-root users

2006-09-13 Thread Lukasz Pawelczyk
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