August 18, 201015 yr im trying to change my UNRAID root password. Cant seem to change it from the root control menu... it acts like it does... but doesnt. also you cant get a list of current users, or check to see if a change "took" The blind control thing is really bothersome if you arent a command line junkie. And no command ref makes RTFM a bit difficult as well...... Or a basic terminal How To..... for the New UNRAID owner I cant find any directions on how to do this from the terminal window... and the Linus command refs i have studied dont provide a solution...... that works not to mention this is an area where you dont want to play games..... Can someone post a link to a command reference that applys to UNRAID's command set? And can someone give me a "howto" on how to properly set the passwords and or change/delete them from the terminal window? -------------------Terminal Line Commands Helpful for UNRAID----------------------- Heres the little I have put together: Unix Command Directory URL http://www.math.utah.edu/lab/unix/unix-commands.html This probably doesnt apply all over the place but is a start. http://vimdoc.sourceforge.net/htmldoc/help.html This will help you figure out how to edit a file from the command line. Samba and Terminal Commands UNRAID: Sometimes the web interface wont come up, or samba stops and needs restart (Probably from the botnets banging at the NAS trying to get in) /etc/rc.d/rc.samba start - START samba /etc/rc.d/rc.samba stop You can try to see this: smbstatus To see what samba thinks is configured, type: NOTE - THIS GIVES GOOD NFO testparm Samba keeps its own log file. To see it, look here. cat /var/log/samba/smbd.log To see if the samba daemon process is running type: ps -ef | grep smbd | grep -v grep UNMENU: http://code.google.com/p/unraid-unmenu/source/browse/trunk/uu?spec=svn72&r=72 Run as before with cd /boot/unmenu ./uu
August 18, 201015 yr passwd should prompt you to change the root password. Yes, but once you change it that way, you'll need to copy the password file to the flash drive with a command like this: cp /etc/passwd boot/config/passwd otherwise, next time you boot you'll probably end up with the old password.
August 18, 201015 yr You're both forgetting a major step if the user is also a SAMBA user; otherwise the local and the samba passwords will be out of sync. You must perform all of the following steps, replace LOGIN with the username, such as root: smbpasswd -L LOGIN passwd LOGIN cp /etc/passwd /etc/samba/private/smbpasswd /boot/config/ If you're running the 5.0 beta, then you should use the following steps (additional shadow password file to copy: smbpasswd LOGIN passwd LOGIN cp /etc/passwd /etc/shadow /etc/samba/private/smbpasswd /boot/config/
August 18, 201015 yr passwd should prompt you to change the root password. Yes, but once you change it that way, you'll need to copy the password file to the flash drive with a command like this: cp /etc/passwd boot/config/passwd otherwise, next time you boot you'll probably end up with the old password. Thanks Joel L for correcting that. I keep forgetting about the temp install until reboot.
June 23, 201115 yr Thank you. This is just what I needed after my fat fingers changed the password via the UI. Luckily I was already logged onto the console so I could preform these steps.
Archived
This topic is now archived and is closed to further replies.