The subject basically says the issue. I am trying to clean up an owncloud and when I try to delete the owncloud folder, I do not have permission. Also, I can not sudo.
I have read a lot about "root access" from ssh. I see the root password should be the same as admin, is that correct? So for ssh should I be using root and the admin password? If so then when I try to ssh with and log in with root and admin password is like the password is wrong.
So, as I said, what should I do to get root access so I can remove the owncloud directory, so I can do a fresh install?
root is not getting admin password.
Re: root is not getting admin password.
First log in with the administrator, and then sudo -i to switch the root user, the password is the administrator password.
- Attachments
-
- root.png (17.53 KiB) Viewed 5278 times
To contact our tech team, please email to support(at)terra-master.com, remember to replace (at) with @
- mossholderm
- Posts: 9
- Joined: 02 Feb 2021, 10:45
Re: root is not getting admin password.
I'm experiencing the same issue after updating to 4.2.13. Worse yet, both su and sudo seem to have their permissions set incorrectly:
(admin@filer01) Password:
Welcome to Tnas!
[admin@filer01 ~]$ ls -l /bin/su
lrwxrwxrwx 1 root root 7 Nov 25 2019 /bin/su -> busybox
[admin@filer01 ~]$ su -
su: must be suid to work properly
[admin@filer01 ~]$ sudo -i
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
[admin@filer01 ~]$ ls -l /usr/bin/sudo
-rwxr-xr-x 1 root root 139248 Jun 17 13:59 /usr/bin/sudo
(admin@filer01) Password:
Welcome to Tnas!
[admin@filer01 ~]$ ls -l /bin/su
lrwxrwxrwx 1 root root 7 Nov 25 2019 /bin/su -> busybox
[admin@filer01 ~]$ su -
su: must be suid to work properly
[admin@filer01 ~]$ sudo -i
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
[admin@filer01 ~]$ ls -l /usr/bin/sudo
-rwxr-xr-x 1 root root 139248 Jun 17 13:59 /usr/bin/sudo
Re: root is not getting admin password.
What is your device model?
To contact our tech team, please email to support(at)terra-master.com, remember to replace (at) with @
Re: root is not getting admin password.
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
The following steps are the solution:
1. Turn off the device and turn it on without any hard disks
and TNAS PC found the device.
2. Log in as root, password admin(IP+9222)
3. After logging in to the background, insert all hard disks and enter the following command
ls /dev/sd*
4. After seeing the hard disk information, execute the command
/etc/tos/scripts/mntcore
chmod 4755 /mnt/core/usr/bin/sudo
5. Then enter reboot.
The following steps are the solution:
1. Turn off the device and turn it on without any hard disks
and TNAS PC found the device.
2. Log in as root, password admin(IP+9222)
3. After logging in to the background, insert all hard disks and enter the following command
ls /dev/sd*
4. After seeing the hard disk information, execute the command
/etc/tos/scripts/mntcore
chmod 4755 /mnt/core/usr/bin/sudo
5. Then enter reboot.
To contact our tech team, please email to support(at)terra-master.com, remember to replace (at) with @