Page 1 of 1

after sshing into your atv4

PostPosted: Sun Mar 05, 2017 7:51 pm
by iosusr
Instead of going into (-bash-3.2#) , how can i go to root(AppleTV-4:~), if i need to reboot my device or if i wanna change my root password

Re: after sshing into your atv4

PostPosted: Mon Mar 06, 2017 1:49 am
by RiotNrrrd
iosusr wrote:Instead of going into (-bash-3.2#) , how can i go to root(AppleTV-4:~), if i need to reboot my device or if i wanna change my root password

"-bash-3.2#" and "AppleTV-4:~" are just your bash shell prompts, defined by the shell variable PS1.

For fun, type this into your shell and hit <Return>:
Code: Select all
export PS1='[\u@\[\033[1m\]\h\[\033[0m\] \W]\$ '

BTW, you can run "passwd" to change the root password from any directory.

Re: after sshing into your atv4

PostPosted: Tue Mar 07, 2017 11:15 am
by azzazzi
I get this when I type passwd
-bash: passwd: command not found

Re: after sshing into your atv4

PostPosted: Wed Mar 08, 2017 10:36 am
by RiotNrrrd
azzazzi wrote:I get this when I type passwd
-bash: passwd: command not found

You didn't read the FAQ thread. You need to enlarge your $PATH to include the /tmp directories where Jonathan stashed his binaries, including passwd.

Code: Select all
[root@NSA-listening-station ~]# which passwd                                                                                                                                                                               
/tmp/usr/bin/passwd