Re: [gentoo-user] /etc/profile.d/ and non-root users
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
Re: [gentoo-user] /etc/profile.d/ and non-root users
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 [EMAIL PROTECTED] (http://pupeno.com) pgp6yx8DN0MWJ.pgp Description: PGP signature
Re: [gentoo-user] /etc/profile.d/ and non-root users
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 [EMAIL PROTECTED] (http://pupeno.com) pgp2FI5uh47aE.pgp Description: PGP signature
Re: [gentoo-user] /etc/profile.d/ and non-root users
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
[gentoo-user] /etc/profile.d/ and non-root users
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
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
Re: [gentoo-user] /etc/profile.d/ and non-root users
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
Re: [gentoo-user] /etc/profile.d/ and non-root users
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 pgpGeV2Aimuvb.pgp Description: PGP signature
Re: [gentoo-user] /etc/profile.d/ and non-root users
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
Re: [gentoo-user] /etc/profile.d/ and non-root users
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