• 0
alirz1

Set PATH, aliases in "ash" shell under DSM 6

Question

Posted (edited)

I moved form DSM 5 to DSM 6.1.x recently. I've looked and looked but i cannot figure out where to set the path, add aliases, and also set the shell prompt to show the current directory path, like it was in DSM 5.

Under dsm 6, im looking to set those values for the root user. i.e once i've Sudo su" to root, thats when i would like my environment variables to kick in. Would anyone know this?

i've tried updating /root.profile, /etc.defaults/profile,  /etc/profile. but none of those seem to have any affect. I even tried chaging the shell for root user to be "bash" instead og ash but even with that i could find out where to put the env variables.

 

Thanks/

 

Edited by alirz1

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

well darn it, i found it myself right after i posted this question.

Create and add in /root/.bashrc. That works for the "ash" shell, which is the default in dsm6.

Share this post


Link to post
Share on other sites
  • 0
The question(s) in this topic have been answered and/or the topic author has resolved their issue. This topic is now closed. If you have other questions, please open a new topic.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.