Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
No, and this sounds slightly suspect. The whole point of the sudoers file is so that root/admin users can define and grant sudo privileges for others. Allowing J. Random User to jump into root privs. at any time (or grant those privileges to others) is a massive security hole, at best.

question I'm trying to get into terminal and I don't know my passwd, I wanted to ssh into my iphone because of some errors in cydia I went through this post and from what you say I can't ! So my iphone is like disabled almost in cydia because of errors and a lot of people have the same problem but mine aside is I don't know the terminal passwd, So is the only option is to format ? :eek:
 
question I'm trying to get into terminal and I don't know my passwd, I wanted to ssh into my iphone because of some errors in cydia I went through this post and from what you say I can't ! So my iphone is like disabled almost in cydia because of errors and a lot of people have the same problem but mine aside is I don't know the terminal passwd, So is the only option is to format ? :eek:

You can restart your Mac from an OS X DVD and reset your account password.

-Lee
 
You can restart your Mac from an OS X DVD and reset your account password.

-Lee

I know my password for installing updates on my macbook! That isn't the same as terminal is it ! I used terminal a long time ago with cyberduck to do somethings for the iphone and I put a password in terminal and I don't know it anymore.
 
I know my password for installing updates on my macbook! That isn't the same as terminal is it ! I used terminal a long time ago with cyberduck to do somethings for the iphone and I put a password in terminal and I don't know it anymore.

I don't know that you should be rooting you phone.

In any event, when you run sudo you enter your user password for your OS X account. If you SSH to your iPhone... I think that password was alpine or something, but it may have changed since then. Unless you reset it, it should be whatever it shipped with. Look in whatever guide you used when you rooted your phone originally.

Is the phone so broken you can't do a restore to baseline software from
iTunes? If that's an option, I'd pursue it.

-Lee
 
I don't know that you should be rooting you phone.

In any event, when you run sudo you enter your user password for your OS X account. If you SSH to your iPhone... I think that password was alpine or something, but it may have changed since then. Unless you reset it, it should be whatever it shipped with. Look in whatever guide you used when you rooted your phone originally.

Is the phone so broken you can't do a restore to baseline software from
iTunes? If that's an option, I'd pursue it.

-Lee

Cydia has messed up a lot of iphones by not being able to get to our packages and sources to make changes to fix the problem so a lot of people are SSH into the phone to delete the problem, I have not done this in 2-3 years and forgot how to and besides that I had problems in terminal back then, Anyway the phone works OK except it reboots every once in a while and I might just leave it alone,

anyway everytime I go to to and put in passwd it takes it and ask for new password to use everytime I put in the new password it ask for a comfirmed password again and then fails it and says>Unable to set extended node credentials for /Local/Default. Authentication failed.
 
Setting a password seems like a prudent next step. You can do this under the Users panel of system preferences. Passwd from the terminal will likely work, too, but it seems safer to do through system preferences.

-Lee

I whole hardedly agre BUT I've been having this issue where it does not recognise my password. SO>>> on the avise of a forum member who suggested that some garbage may have been left over from previous versions as I upgraded up to LION, I did a clean install and, of course, set a user password and when I got to the log-in window, I selected... me... the only account showing (no "root" yet activated), it prompted me to change my password BUT did NOT recognise my old one. I backed out of this option and attempted to olog-in useing the password I JUST set up moments earlier and it denied me access. I attempted another CLEAN Lion install, having erased the HD AGAIN, this time, aside from the admin password, I opted to NOT require a password to lo-gi and... The Screen ent grey. I waited a while and finally held the power button till it shut down. I restarted and when It loaded the OS, low and behold, it was at a log-in window. I selected... ME, still the only account there and the same password change prompt popped up. It STILL won't accept my "not-required" pasword to log-in.

Yes.. I have tried EVERY which way to change the password and it still goes to the d***ed password prompt. It's has GOT TO BE in the EFI set up or, as it is and intel base motherbord, in the BIOS, seeing as, contrary to popular belief, does exist in my model.. so I read from some computer gure (all forms and sizes).

I REALLY need help as I no longer have a computer. I'm using my neighbor's to write this reply. Might anyone have an idea that IS NOT realsted to how to change the password. As I said .. every chich way has been tried.

one frustrated me.
:confused::apple::eek::mad:
 
Your firmware is absolutely EFI and not BIOS. There is a BIOS-compatible environment which starts when you boot Windows.

But you're talking about the non-volatile ram (nvram), also called parameter ram (pram). You can use the nvram command to print and delete the variables stored in nvram.

You can reset nvram by holding down Option-Command-P-R before the Apple logo appears when you boot. http://support.apple.com/kb/ht1379.

But the login password is not store in nvram, seriously. http://support.apple.com/kb/HT1242. There's something else you're doing wrong.
 
After your clean install, did you migrate your data? Is it asking you to change your keychain password? Was your password blank under Snow Leopard?
 
Hi

I have come across this forum in my effort to try and delete some files on my external HDD that my Mac is telling my that I don't have access privileges to. Am trying to delete using the sudo commands but had the problem that I didn't have a password (setup initially as blank). I followed the instructions above and set a password and the sudo command now accepts that, but I still get an error that "Operation not permitted". Arrrggh ... is there anything else I can do to delete these pesky files?
 
Hi

I have come across this forum in my effort to try and delete some files on my external HDD that my Mac is telling my that I don't have access privileges to. Am trying to delete using the sudo commands but had the problem that I didn't have a password (setup initially as blank). I followed the instructions above and set a password and the sudo command now accepts that, but I still get an error that "Operation not permitted". Arrrggh ... is there anything else I can do to delete these pesky files?
For an external drive you can select the drive in Finder then command-i to see the Get Info pane, then there is a checkbox there to ignore ownership on the drive. That will allow you full access to the drive without sudo.
 
For an external drive you can select the drive in Finder then command-i to see the Get Info pane, then there is a checkbox there to ignore ownership on the drive. That will allow you full access to the drive without sudo.

Hi Weaselboy

Thanks for the suggestion. I have tried unchecking the "Locked" tick box in the Info Pane for each individual file and problematic folder, but that does not work. I just re-locks again after a few seconds. I will try to unlock it from the Drive level tonight and let you know whether that works or not. Just quietly, I am not hopeful. If it doesn't work, is there a way to assume full permissions ownership of a drive/folder/file?
 
Hi Weaselboy

Thanks for the suggestion. I have tried unchecking the "Locked" tick box in the Info Pane for each individual file and problematic folder, but that does not work. I just re-locks again after a few seconds. I will try to unlock it from the Drive level tonight and let you know whether that works or not. Just quietly, I am not hopeful. If it doesn't work, is there a way to assume full permissions ownership of a drive/folder/file?

Hi again. Sorry for the long delay. I tried checking the Get Info pane at the drive level, but it does not allow me to modify the "Locked" checkbox, which is not checked in any case. My setup maybe complicated in that it is a network drive via my router rather than an external hdd connected directly to my mac. Any other suggestions would be greatly appreciated.
Phil
 
Hi again. Sorry for the long delay. I tried checking the Get Info pane at the drive level, but it does not allow me to modify the "Locked" checkbox, which is not checked in any case. My setup maybe complicated in that it is a network drive via my router rather than an external hdd connected directly to my mac. Any other suggestions would be greatly appreciated.
Phil
Please post a screenshot of the Get Info pane for your drive. Ensure the General and "Sharing and Permissions" subpanes are fully visible.

Also see this post from a similar thread:
https://forums.macrumors.com/thread...m-on-external-hardrive.2034347/#post-24346194
 
Not sure if this works, but here goes:
https://www.dropbox.com/s/q71earn5ld1vqyn/Screenshot 2017-03-24 21.46.10.png?dl=0

That's it - the whole pane. There is no Sharing and Permissions subpane
I'm pretty sure your screenshot is of the file server (i.e. your router acting as a file server).

You need to connect to the server, so the files and folders on the server are accessible. A file server as a whole doesn't have permissions or locking, although the files and folders residing on it do.

Your first post in this thread stated:
I have tried unchecking the "Locked" tick box in the Info Pane for each individual file and problematic folder, but that does not work.​

Pick one file or folder that's problematic, and show us that item's Get Info pane.
 
I'm pretty sure your screenshot is of the file server (i.e. your router acting as a file server).

You need to connect to the server, so the files and folders on the server are accessible. A file server as a whole doesn't have permissions or locking, although the files and folders residing on it do.

Your first post in this thread stated:
I have tried unchecking the "Locked" tick box in the Info Pane for each individual file and problematic folder, but that does not work.​

Pick one file or folder that's problematic, and show us that item's Get Info pane.

This is the Get Info pane of one of the files that I cannot delete:
https://www.dropbox.com/s/sra1p8h7y74d9ih/Screenshot 2017-03-25 13.41.31.png?dl=0

This file is actually a copy of the original file which I had a problem with! I was able to copy the original file into a new directory on the network drive, but somehow the locked permissions of the new file were transferred from the original, and now I cannot delete either. The Locked checkbox is ticked in the screenshot - I have tried unchecking it and deleting, but that does not work. It reverts to a checked (Locked) state after a couple seconds of unchecking it.
 
This is the Get Info pane of one of the files that I cannot delete:
https://www.dropbox.com/s/sra1p8h7y74d9ih/Screenshot 2017-03-25 13.41.31.png?dl=0

This file is actually a copy of the original file which I had a problem with! I was able to copy the original file into a new directory on the network drive, but somehow the locked permissions of the new file were transferred from the original, and now I cannot delete either. The Locked checkbox is ticked in the screenshot - I have tried unchecking it and deleting, but that does not work. It reverts to a checked (Locked) state after a couple seconds of unchecking it.
Thanks. That's a much more informative screenshot.

My first guess is that the problem has something to do with how you're connected to the file server (router). It's using the SMB protocol, which is capable of enforcing access permissions.

What user are you connecting to the file server (router) with? Does that user have read-write permission in the location where your file resides?


Notice the scrollbar on the right side of the Get Info screenshot. This tells me there's some content below the Preview icon that isn't showing. That happens to be where "Sharing and Permissions" will appear (below Preview).

Since I don't need to see the Preview icon, please collapse that subpane (click the little triangle next to the "Preview:" label), and then ensure Sharing and Permissions is expanded, and take another screenshot. If it won't all fit without scrolling, collapse "Name and Extension", because I don't need that.
 
I'm pretty sure your screenshot is of the file server (i.e. your router acting as a file server).

You need to connect to the server, so the files and folders on the server are accessible. A file server as a whole doesn't have permissions or locking, although the files and folders residing on it do.

Your first post in this thread stated:
I have tried unchecking the "Locked" tick box in the Info Pane for each individual file and problematic folder, but that does not work.​

Pick one file or folder that's problematic, and show us that item's Get Info pane.



Here is the Get Info pane for one of the files that I cannot delete:
https://www.dropbox.com/s/zhl4jtpixcx1343/Screenshot 2017-03-26 09.57.05.png?dl=0

This file is actually a copy of the original problematic file. I copied the original file to a new directory on the Ext. network drive no problem, but the permissions preventing file deletion copied with the file and now I can't delete the copy either.

This problem appears to be random across the drive - most individual files and folders with many files can be deleted no problem, but in other folders occasionally one or a few files cannot be deleted - very frustrating.

Phil
 
Here is the Get Info pane for one of the files that I cannot delete:
https://www.dropbox.com/s/zhl4jtpixcx1343/Screenshot 2017-03-26 09.57.05.png?dl=0

This file is actually a copy of the original problematic file. I copied the original file to a new directory on the Ext. network drive no problem, but the permissions preventing file deletion copied with the file and now I can't delete the copy either.

This problem appears to be random across the drive - most individual files and folders with many files can be deleted no problem, but in other folders occasionally one or a few files cannot be deleted - very frustrating.

Phil
The more details you provide, the more likely someone will be able to do something about it.

1. The screenshot of that file doesn't add any information. Please read post #44, starting with "Notice the scrollbar". The permissions and sharing info may be useful, or it may not. No one can tell for sure without seeing it.

2. I don't think you've identified the exact model and manufacturer of the router that's acting as your file server here. That would at least let me search for a user manual and see if anything strikes me as significant.

3. I don't think you've identified the exact Mac model and OS version, either.

4. There may be some additional permissions on the problematic items (ACLs, if you want the technical term). If you're willing to enter a command line into a Terminal window, I can post some for you to copy & paste. If you want that, please ask for it; I won't post commands unless you ask. I'm not saying that to be passive-aggressive, it's that it takes some testing effort here to ensure it's a command that should produce useful info.
 
Hi chown33
Here are the other details youiasked for:
Network Router: Netgear D6300 Firmware ver.V1.0.0.76_1.0.76
Mac Mini:Mac OS Sierra ver. 10.12.3

Here is another screen shot of the Get Info pane of the same file. The only info the Sharing & Permissions subpane gives is "You have custom access".
https://www.dropbox.com/s/qupvrb9c7xap4lf/Screenshot 2017-03-26 20.18.05.png?dl=0

Please post terminal commands if they can help to diagnose what is going on.

Thanks for your assistance.

Phil
[doublepost=1490520692][/doublepost]I j
Hi chown33
Here are the other details youiasked for:
Network Router: Netgear D6300 Firmware ver.V1.0.0.76_1.0.76
Mac Mini:Mac OS Sierra ver. 10.12.3

Here is another screen shot of the Get Info pane of the same file. The only info the Sharing & Permissions subpane gives is "You have custom access".
https://www.dropbox.com/s/qupvrb9c7xap4lf/Screenshot 2017-03-26 20.18.05.png?dl=0

Please post terminal commands if they can help to diagnose what is going on.

Thanks for your assistance.

Phil
Just had a look at the network server setting on the router to see if that would offer any explanations, but no - it would seem that both read and write access is not restricted, see screenshot:
https://www.dropbox.com/s/zl7gvnft53u3qwn/Screenshot 2017-03-26 20.29.57.png?dl=0
 
The disk format might be affecting things. According to the user manual for the D6300 router:

The modem router supports both read and write access for FAT16, FAT32, NTFS, and Linux file systems (EXT2 and EXT3).​

You might want to check which format your USB disk is. I'm not sure how to do that when it's connected to the router, but if you disconnect it and plug it directly into the Mac, you can find out easily with a Get Info on the disk icon that appears on your Desktop. If the disk is EXT2 or EXT3, I don't think MacOS will mount it, so those will ask if you want to erase the disk (Cancel it and nothing happens).


Copy and paste this command line into a Terminal window:
Code:
mount ; ls -led@ /Volumes/*/.

If you paste the entire line, it should immediately produce several lines of output. Otherwise press your RETURN key at the end of the line.

Then drag-select the complete output, press ⌘C to copy it to the clipboard, and paste the complete output into a post here. Please use code tags.
 
The disk format might be affecting things. According to the user manual for the D6300 router:

The modem router supports both read and write access for FAT16, FAT32, NTFS, and Linux file systems (EXT2 and EXT3).​

You might want to check which format your USB disk is. I'm not sure how to do that when it's connected to the router, but if you disconnect it and plug it directly into the Mac, you can find out easily with a Get Info on the disk icon that appears on your Desktop. If the disk is EXT2 or EXT3, I don't think MacOS will mount it, so those will ask if you want to erase the disk (Cancel it and nothing happens).


Copy and paste this command line into a Terminal window:
Code:
mount ; ls -led@ /Volumes/*/.

If you paste the entire line, it should immediately produce several lines of output. Otherwise press your RETURN key at the end of the line.



Then drag-select the complete output, press ⌘C to copy it to the clipboard, and paste the complete output into a post here. Please use code tags.

Code:
mount ; ls -led@ /Volumes/*/. 

Last login: Mon Mar 20 21:53:36 on ttys000

Phillips-Mac-mini:~ phil$ mount ; ls -led@ /Volumes/*/. 

/dev/disk1 on / (hfs, local, journaled)

devfs on /dev (devfs, local, nobrowse)

map -hosts on /net (autofs, nosuid, automounted, nobrowse)

map auto_home on /home (autofs, automounted, nobrowse)

//GUEST:@readyshare/USB_Storage on /Volumes/USB_Storage (smbfs, nodev, nosuid, mounted by phil)

/dev/disk2s1 on /Volumes/vlc-2.2.0 (hfs, local, nodev, nosuid, read-only, noowners, mounted by phil)

drwxr-xr-x  34 root  wheel   1224 23 Mar 09:32 /Volumes/Macintosh HD/.

drwxrwxrwx   1 phil  staff  16384 16 Mar 21:11 /Volumes/USB_Storage/.

drwxr-xr-x  11 phil  staff    442 27 Feb  2015 /Volumes/vlc-2.2.0/.

Does that shed any light on the issue for you? It doesn't mean anything to me...although at a guess I would say that rwx == "read, write, delete" and that for the ext storage drive "/Volumes/USB_Storage/", rwxrwxrwx == full global access for all users ...

Phil
 
Does that shed any light on the issue for you?
Thanks for posting the data, but it doesn't show anything directly useful. However, it's a good starting point, and the absence of ACLs is informative.

The next command line should print the info for a specific file, one you've previously said was problematic.

Copy and paste this into a Terminal window, then copy and paste the complete output into code tags and post it here:
Code:
ls -led@  /Volumes/USB_Storage/tv/  /Volumes/USB_Storage/tv/Once*3E19x*avi
Yes, I'm intentionally using *'s in the command, and I'd like you to use them exactly as given.


One odd thing I saw in the posted output was this:
Code:
/dev/disk2s1 on /Volumes/vlc-2.2.0 (hfs, local, nodev, nosuid, read-only, noowners, mounted by phil)
The key thing in that line is "read-only". If the file server "USB_Storage" had been mounted read-only, then files will not be deletable or changeable, regardless of the actual file-level permissions. But "USB_Storage" isn't mounted read-only, as shown by this line:
Code:
//GUEST:@readyshare/USB_Storage on /Volumes/USB_Storage (smbfs, nodev, nosuid, mounted by phil)
Can you explain what the volume named "vlc-2.2.0" is, and how it's being used?


It doesn't mean anything to me...although at a guess I would say that rwx == "read, write, delete" and that for the ext storage drive "/Volumes/USB_Storage/", rwxrwxrwx == full global access for all users ...
The 'x' means 'execute', but for directories it means "searchable".

For more, read the 'ls' man page:
https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/ls.1.html

The heading "The Long Format" gives details.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.