bash: /root/.bashrc: Permission denied$

asked 2018-01-07 19:24:20 +0200

DarkTuring gravatar image

Ok so this is weird when trying to root the phone temporarily by connecting remotely: devel-su with associated and correct passcode i get the following:
bash-3.2$ devel-su
Password:
bash: /root/.bashrc: Permission denied
bash-3.2$

Any idea what that means and why in the terminal it doesnt let me access root?

edit retag flag offensive close delete

Comments

1

Could you try following statement and post the output:

devel-su
ll /root/.bashrc
lakutalo ( 2018-01-07 19:37:39 +0200 )edit

Seems something is trying to execute /root/.bashrc, which doesn't have executive permission. Maybe you should check /etc/profile, /etc/bashrc and /root/.bash_profile

Universebenzene_Jolla ( 2018-01-07 20:01:11 +0200 )edit

when executing is says permission denied. I exited and turned off a patch i had installed (Custom Hostname) and after going back into Fingerterm it allowed me root access.

Output: SailfishOS 2.1.3.7 (Kymijoki) (armv7hl) '--- [nemo@JollaX ~]$ ll /root/.bashrc ls: cannot access /root/.bashrc: Permission deni ed
[nemo@JollaX ~]$ devl-su
bash: devl-su: command not found
[nemo@JollaX ~]$ devel-su
Password:
[root@JollaX nemo]#

DarkTuring ( 2018-01-07 23:26:01 +0200 )edit

No, first devel-su, then ll /root/.bashrc. The output should be like this:

[root@Sailfish nemo]# ll /root/.bashrc
-rw-r--r-- 1 root root 176 2013-10-31 17:55 /root/.bashrc

But obviously the hostname patch adds something illegal to your root's bash init script (.bashrc).

lakutalo ( 2018-01-08 01:33:32 +0200 )edit

[root@JollaX nemo]# ll /root/.bashrc -rw-r--r-- 1 root root 176 2013-10-31 09:55 /roo t/.bashrc [root@JollaX nemo]#

seems to match your output, it must be the custom host name patch

DarkTuring ( 2018-01-08 01:47:59 +0200 )edit