|
2016-08-10
, 10:16
|
Posts: 175 |
Thanked: 210 times |
Joined on Mar 2013
|
#3
|
The Following User Says Thank You to Malakai For This Useful Post: | ||
I seem to have an issue with maemo and root's .profile file.
First I've added an alias in the user's .profile :
alias ll='ls -la'
Saved the file and closed the ssh connection. Upon the next ssh connection (or after opening a new terminal window) the ll command outputted what ls -la would have, so it's working.
Doing the same thing with /root/.profile doesn't work (it displays : /bin/sh: ll: not found).
I have to mention that I don't use ssh for root, I rather ssh with user and use the sudo gainroot command. Is it why it doesn't work?
I also noticed "mesg n" in /root/.profile : what is it for?
Also when being root and doing a simple cd command without any argument, it sends me to /home/user. Shouldn't it send me to /root, as that should be root's home directory. Could this be the issue (/root/.profile isn't sourced because /root is not root's home)?
How to fix it (source /root/.profile when connected as root, to have aliases available)?
Last edited by Malakai; 2016-08-10 at 10:17. Reason: Solved