Mac change password for sudo11/2/2022 ![]() ![]() now I am really confused - the command works, as I believe recommended by others, but I still just don't understand why the command won't just execute the file and I have to do it this way - if this is how it is I'll get used to it, thanks though for your help also - now since originally what I was doing was trying to view the hash for the password of my username - how would I go about doing this?. Joshuas-MacBook-Air:/ joshua$ sudo passwd root I am not sure why your recollection of this is mistaken. Su and the shell have always behaved this way. So again the error is misleading, it isnt't telling you it is a bad binary file it is tell ing you it does not want to execute a binary file. rwxr-xr-x 1 frank staff 13 Jun 2 09:16 fooįoo being a file of a single shell command echo "hello" and is executable. Now if you change /usr/bin/passwd to a file with shell commands it works. ![]() So basically you are running (after the switch to the new user) Anything after that is sent to the new shell. If you look at the man page for su you will see it takes a number of options then the username you are subbing. Is not telling you the binary file cannot be executed it is telling you that the shell at that point does not want a binary file, it is looking for a shell script file. ![]() Mac change password for sudo install#Josh (I'm using some form of mountain lion - but will install mavericks now) usr/bin/passwd: /usr/bin/passwd: cannot execute binary fileĮarlier today I used plutil to convert the ist file to xml format so I could view the sha512 hash (I just started reading about it today) but I didn't back up the ist file - so then it caused this problem, even after I converted the file back to binary format, the terminal wouldn't have it, and gives this error even AFTER FORMATTING the macbook, please help me with this? I used to just be able to change the root password as a normal user giving the current root password, I can change the root password using the disk utility, but I don't want to do this, please help me correct this!Īpple support didn't do anything, I just got directed to speak to someone else in a shop. Joshuas-MacBook-Air:~ joshua$ su root passwd ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |