Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi there, I'm using a Synology DS101J nas with linux on it. I saw that there was open ssh 4.2, so i upgraded to the last 5.X version. I linked the right sshd_config, i have passwordAuthentication yes, permitrootlogin, and allowedUsers admin root
I can log with admin, but not with root, but that's the strange thing:
root is meant to have the same pass as admin does, but the /etc/shadow entry is different, but i can login using telnet or the webinterface using the admin password with the root user. I don't want to change the root pass because i'm afraid I'll break something, cause it's a special distribution for a NAS.
Maybe there's a tricky configuration with telnet, but there's no telnetd.conf so I assume the defaults parameters are used.
Hi there, I'm using a Synology DS101J nas with linux on it. I saw that there was open ssh 4.2, so i upgraded to the last 5.X version. I linked the right sshd_config, i have passwordAuthentication yes, permitrootlogin, and allowedUsers admin root
I believe that the correct format for the root login parameter is:
Code:
PermitRootLogin yes
Changing that >>should<< allow the root login.
I do not believe that you have to additionally use "AllowedUsers" for root.
Quote:
Originally Posted by nekkro-kvlt
I can log with admin, but not with root, but that's the strange thing:
root is meant to have the same pass as admin does, but the /etc/shadow entry is different, but i can login using telnet or the webinterface using the admin password with the root user. I don't want to change the root pass because i'm afraid I'll break something, cause it's a special distribution for a NAS.
I can't imagine that doing a 'passwd' as root would break anything . . . the hash in shadow for each being different does not necessarily mean that the passwords aren't the same.
Quote:
Originally Posted by nekkro-kvlt
Maybe there's a tricky configuration with telnet, but there's no telnetd.conf so I assume the defaults parameters are used.
As far as I know, root login is not allowed in telnet by default, so that is an odd telnetd or there is a config file somewhere.
The salt (the first part what you see as password in /etc/shadow)) that is used for the for the password hashing is different and therefore the total password that you see is different.
If I understand you correctly, you CAN login as root but not when you use SSH? If so, keep it like that, use admin (or another user to login) and use su - root. It's a lot safer and even if that box is not connected to the big bad world it's still a good habit.
login: admin
...
partage> su root
su: This applet requires root priviledges!
partage> su - root
su: This applet requires root priviledges!
I've put the right PermitRootLogin, I've uncommented it in sshd_config.
All the config is the sshd_config by default, exept i set the permitrootlogin, allowusers, and PasswordAuthentication yes
For the telnetd, i typed find / | grep telnetd.conf and there's nothing. Also check inetd.conf, but no referecence to any configuration file
The thing is that is used to work before I upgraded the version of openssh.
I've put the right PermitRootLogin, I've uncommented it in sshd_config.
All the config is the sshd_config by default, exept i set the permitrootlogin, allowusers, and PasswordAuthentication yes
For the telnetd, i typed find / | grep telnetd.conf and there's nothing. Also check inetd.conf, but no referecence to any configuration file
Just to be completely clear . . . it does say, "PermitRootLogin yes" in your sshd_config file? Just "PermitRootLogin" is not sufficient, I do not think.
The prompt, "partage>" . . . is that how your shell prompt has always looked on that machine?
If just "su" is really not working, perhaps "sudo su -" and enter the password for the admin user when prompted . . . depends on the configuration of the sudoers file and the permissions on the su executable as to what will work and for whom.
To sidestep all of that, though, if "PermitRootLogin yes" is in sshd_config, you should be able to log straight in as root with a simple "ssh root@hostname"
As pointed out earlier, it is preferable from a security point of view to log in as a less privileged user and then set UID to root.
Just to be completely clear . . . it does say, "PermitRootLogin yes" in your sshd_config file? Just "PermitRootLogin" is not sufficient, I do not think.
The prompt, "partage>" . . . is that how your shell prompt has always looked on that machine?
If just "su" is really not working, perhaps "sudo su -" and enter the password for the admin user when prompted . . . depends on the configuration of the sudoers file and the permissions on the su executable as to what will work and for whom.
To sidestep all of that, though, if "PermitRootLogin yes" is in sshd_config, you should be able to log straight in as root with a simple "ssh root@hostname"
As pointed out earlier, it is preferable from a security point of view to log in as a less privileged user and then set UID to root.
yes, I set PermitRootLogin yes, partage> is the right prompt (was using telnet as root, local personnal network, not so crazy )
when I type su - or su root it gave me the message above, and the sudo command doesn't even exists...
Maybe i have to set UID root to my admin user to be able do make a su - root ? But how to do so ? I'm quite new in unix administration
You have to know that's a very minimalist distro, acting more as a firmware with extended function as you have in linksys WRT54G for example.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.