Thread
:
[Solved] Maemo root .profile not sourced
View Single Post
Malakai
2016-07-31 , 16:09
Posts: 175 | Thanked: 210 times | Joined on Mar 2013
#
1
Hello everybody,
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
Quote & Reply
|
Malakai
View Public Profile
Send a private message to Malakai
Find all posts by Malakai