Root on my debian?

When I use su to get root, and then I cd ~

I am not on the /root, when I ls it shows me a Desktop file and some hidden files like .bashrc, but nothing else.

root@debian:~# ls -a
. .. .adobe .bash_history .bashrc .cache .config Desktop .gnome2 .gnome2_private .local .macromedia .mozilla .profile .vim .viminfo

to go to the real /root I have to cd / from here.

I thought that there were no ../ from /root, so what is this ~ ?

edit 2 :

xxxx@debian:~$ ls
Desktop Documents Downloads Music Pictures Public Templates Videos
xxxx@debian:~$ su
Password:
root@debian:/home/xxxx# cd
root@debian:~# ls
Desktop
root@debian:~# pwd
/root
root@debian:~# cd /
root@debian:/# ls
bin boot dev etc home initrd.img lib lib64 lost+found media mnt opt proc root run sbin srv sys tmp usr var vmlinuz
root@debian:/# pwd
/

Gilles 'SO- stop being evil''s user avatar

asked Dec 20, 2015 at 18:00

aqww's user avatar

You are mistaking two things that have similar names.

root — is also called / — it’s the starting point of your disc. If you imagine your filesystem laid out as a tree(in mathematical sense), you will see clearly why it’s called a root — it does not have an ancestor, only children.

However, /root is whole different thing. You can see the name differs — very little, only / at the beginning, but that’s what changes meaning dramatically. /root is a directory called root which you can find in /. So, if you do:

answered Dec 20, 2015 at 18:36

MatthewRock's user avatar

6 gold badges30 silver badges54 bronze badges

answered Dec 20, 2015 at 18:06

roaima's user avatar

14 gold badges132 silver badges255 bronze badges

answered Dec 20, 2015 at 18:05

netmonk's user avatar

1 gold badge12 silver badges20 bronze badges

To know where you are in the directory tree, you have to type:

pwd
cd /

answered Dec 20, 2015 at 18:14

dervishe's user avatar

1 gold badge5 silver badges14 bronze badges

Security is always about making trade-offs. Just like the proverbial server which is in a safe, unplugged, at the bottom of the ocean, root would be most secure if there were no way to access it at all.

Дополнительно:  Синие горизонтальные полоски на мониторе. Почему появились полосы на экране и что с этим делать

But, sudo-for-unrestricted-root does address another security problem: manageability of root passwords. At many organizations, these tend to be passed around like candy, written on whiteboards, and left the same forever. That leaves a big vulnerability, since revoking or changing access becomes a big production number. Even keeping track of what machine has what password is a challenge — let alone tracking who knows which one.

Remember that most «cyber-crime» comes from within. With the root password situation described, it’s hard to track down who did what — something sudo with remote logging deals with pretty well.

On your home system, I think it’s really more a matter of the convenience of not having to remember two passwords. It’s probable that many people were simply setting them to be the same — or worse, setting them to be the same initially and then letting them get out of sync, leaving the root password to rot.

Using passwords at all for SSH is dangerous, since password-sniffing trojaned ssh daemons are put into place in something like 90% of the real-world system compromises I’ve seen. It’s much better to use SSH keys, and this can be a workable system for remote root access as well.

But the problem there is now you’ve moved from password management to key management, and ssh keys aren’t really very manageable. There’s no way of restricting copies, and if someone does make a copy, they have all the attempts they want to brute-force the passphrase. You can make policy saying that keys must be stored on removable devices and only mounted when needed, but there’s no way of enforcing that — and now you’ve introduced the possibility of a removable device getting lost or stolen.

Fix Lost Root Access Issue

Rooting in Android is the key to all kinds of system tweaking or optimization and visual customization. You need to have proper root access to be able to install root apps from the Play Store. In most cases rooting an Android device simply means losing the manufacturer’s warranty. However, people still root their device because they find the benefits of having root access irresistible.

Дополнительно:  Как получить root права на honor 9 lite без компьютера

The method of rooting devices from different OEMs differ in some way or other. It can be achieved using an automated script or an easy-root toolkit, by flashing a pre-rooted ROM, or by installing a flashable root package via stock or custom recovery. I have no idea what method you used to acquire root access on your phone or tablet, but if you have been facing issues with root privileges on your device, the tips provided on this page might be of some help to you.

Have you been facing “Root Access Possibly Lost” issue while trying to back up, restore a flash a ROM in CWM or TWRP recovery? Do you see “Root access missing” message on your rooted device when you open an app that requires root? Try one of the solutions suggested below to fix missing or lost root access issue on rooted Android devices

  1. First off, make sure that your device has been rooted properly. To verify root access on your device, try this free app: [googleplay url=”https://play.google.com/store/apps/details?id=com.joeykrim.rootcheck”] Make sure that you see the following message in Root Checker. root checker android
  2. If you’re facing missing root issue just after rooting your device, open SuperSU and update SU binary if the app prompts you to do so.su-binary-update
  3. In case root permission issue is related to a specific app and it works fine with other apps, you might have accidentally denied root permission to that app. To fix it, go to device Settings> Applications> All> SuperSU and tap it. Then clear app data. Now open the app in question and grant root permission when prompted.
  4. Open SuperSU from your device’s app drawer, go to app Settings and try disabling and enabling it. Then reboot the device and try using root apps. If the lost root problem is not fixed yet, try the solution given below.
  5. Open SuperSU> Settings and tap the Reinstall option and select Continue.supersu reinstall
  6. If your device doesn’t have a custom recovery like CWM or TWRP installed on it, you can try this solution.
    1. Download the latest version of Chainfire’s SuperSU flashable ZIP file: UPDATE-SuperSU-vx.xx.zip
    2. Unzip the file and open the extracted folder.
    3. Go to a folder called common and open it.suspersu apk
    4. Copy Superuser.apk to your device and install it. Then try using a root app to check if the problem has been solved.
    5. If you have a Samsung Galaxy device with KNOX on it, and you are getting issues with root access, the above solution might be helpful to you too. After installing Superuser.apk, open the app. When you see the following message, select OK: “Samsung Knox has been detected. This might limit root capabilities and cause annoying popups. Try to disable KNOX.”Fix Lost Root Access Issue
  7. If your device has CWM or TWRP, download the latest SuperSU APK. Copy the zip to your device and flash it using Install option (in TWRP), or install zip from sdcard option (in CWM).
Дополнительно:  Гайд по решению технических неполадок Genshin Impact

If none of the above tips could help your problem with root privileges and did not fix missing or lost root access issue on your Android device, find a proper root exploit for your device and root it again.

If the methods described in this tutorial did not work for you, please head over to our new guide for fixing the lost root issue on Android devices.

Got Root on Your Device?

Find Best Apps for Rooted Android Devices

<!—

—>

Reader Interactions


Оцените статью
Master Hi-technology