Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
what is the best way to get add a root account to a linux box, if I don't have the root password? I have a small Linux based Audio Player NAS-SC55PKE, where I need access. I want to check if I can add some functionalty to this box (mainly WPA2 support for wireless).
This is installed: http://www.sony.net/Products/Linux/A...AS-S55HDE.html
I could connect the drive to my computer if needed. Maybe it's possbile to add an 'account' offline?
Anything is possible, if you can attach the drive to your pc you can do pretty much whatever you like with it. The simplest way would probably be to bind mount /proc and /dev then chroot into the drive and simply run useradd, edit /etc/sudoers and whatever else you need to do
I tried the chroot - but as it's not the same architecture, I get an error.
Is there another way to add a root user? I tried to modify passwd entry on another system with a known password hash. But it doesn't seem to work.
I managed to get the firewall disabled and to get sshd running. But as soon as I try to login, connection will be closed.
Just edit the files manually - /etc/passwd, /etc/group and the shadow files. It won't matter if the password is empty, you can change it once you login.
what I did is this:
1.) Backup passwd file
2.) Open passwd with vi
3.) Modify root user in passwd - ony the password field (with a password hash from another passwd file)
The only chance I have to verify, is to boot the audio system and try to login with root. But the connection is closed right after I enter password.
I added another user to passwdd - same behavior. Putty will close connection right after I enter a password.
It is enabled - I can login. But I don't get a shell. I only get 'Server refused to allocate pty'.
I added this entry to fstab:
devpts /dev/pts devpts gid=5,mode=620 0 0
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.