Wait so if you reboot and hold cmd + s on boot it takes you to the command prompt as the root user. Because you get access to commands like reboot without using sudo.
@originalfunkman In POSIX in general, only the root user has elevated privileges, and other users have no special privileges at all. Most systems now include the sudo command, which is where the concept of "admin" accounts comes in, because users in the admin group can run commands as root using sudo. So, if you are an admin, you can't do much more than a regular user without the user of sudo.
@scvuk1999 yes it is. while in terminal go to preferences on the toolbar or hit command comma and on i think its the second tab click homebrew and then hit default to change homebrew to default. :P
@quinxx12 Root gives you permissions that you do not get as a normal user. This includes being apple to change anyone's password, view anyone's files, change system settings, etc.
@quinxx12 SUDO stands for Substitute User Do. Basically temporarily (5 minutes before you have to type sudo again) do something as another user. If you just type sudo -u username (replace username with the desired one) it lets you do an action as that user instead, without logging out of your current user's session. If you type sudo without a username it will assume you wish to perform that action as root. Root has all elevated privileges on a unix system, it will let you change anything.
My friend is admin on his computer and forgot his password to log in, will this sudo passwd "user" work? I recommended that he boot up in root and create a second admin, but if this works then it would be so much easier
I'm sure he knows them all. It seems odd because the Terminal isn't relevant to you, isn't personal, but to someone who's familiar with the Terminal it's just like knowing how to use the Dock and Spotlight and Finder. Do you have CMD+C and CMD+V memorized, or written down?
Everything you can do in Finder is a GUI analogue to something you can do from the Terminal. What Finder permits is a small subset of what you can do from the Terminal, as the shutdown example demonstrates.
1. When you start terminal press Apple+Comma (Apple+,) and then click Settings witch should be one of the buttons at the top of the window. Then set settings for Basic.
2. When terminal is running hold control while clicking the Terminal Dock icon In the New Window menu click Homebrew. There are of coarse a bunch of other themes.
I will remind you that you can't do this on Tiger or Panther, Only leopard.
1. When you start terminal press Apple+Comma (Apple+,) and then click Settings witch should be one of the buttons at the top of the window. Then set settings for Basic.
2. When terminal is running hold control while clicking the Terminal Dock icon In the New Window menu click Homebrew. There are of coarse a bunch of other themes.
I will remind you that you can't do this on Tiger or Panther, Only leopard.
Wait so if you reboot and hold cmd + s on boot it takes you to the command prompt as the root user. Because you get access to commands like reboot without using sudo.
insecur 1 month ago
what's the difference between root and just being the admin?
originalfunkman 2 months ago
@originalfunkman In POSIX in general, only the root user has elevated privileges, and other users have no special privileges at all. Most systems now include the sudo command, which is where the concept of "admin" accounts comes in, because users in the admin group can run commands as root using sudo. So, if you are an admin, you can't do much more than a regular user without the user of sudo.
macheads101 2 months ago
Am I supposed to be an admin in order to be able to use "sudo" command?
NuntiusMusicae 2 months ago in playlist Terminal Mac
@NuntiusMusicae Yes, you are
macheads101 2 months ago
Can you disable GUI shutdown of your computer so you can only shut it down using the command line?
macsimum76 4 months ago
@Bigdaire good greif im 12 years old and i got it first time :P
drhesslen 4 months ago
Hey
If i set my mac to reboot in 3 hours does terminal need to be left open for that time?
patrickvickery 5 months ago
@scvuk1999 yes it is. while in terminal go to preferences on the toolbar or hit command comma and on i think its the second tab click homebrew and then hit default to change homebrew to default. :P
freetrigger 5 months ago
Is it possible to change the colour settings on the Terminal to yours. Thanks from ur biggest fan
scvuk1999 6 months ago
when changing another users password this way, what effect does does it have if they have filevault?
supercooper92 7 months ago in playlist Terminal Lessons
Thanks you so much. This is just so helpfull
MrLareneon 11 months ago
How canI get the root password of my computer, I am not admin, but I can log into that session. Were can I change it and what does it correspond to?
TheTopSecretPerson 11 months ago
Hey
So what is sudo exactly?? I mean what does it mean to be root?
quinxx12 1 year ago
@quinxx12 Root gives you permissions that you do not get as a normal user. This includes being apple to change anyone's password, view anyone's files, change system settings, etc.
macheads101 1 year ago
@quinxx12 SUDO stands for Substitute User Do. Basically temporarily (5 minutes before you have to type sudo again) do something as another user. If you just type sudo -u username (replace username with the desired one) it lets you do an action as that user instead, without logging out of your current user's session. If you type sudo without a username it will assume you wish to perform that action as root. Root has all elevated privileges on a unix system, it will let you change anything.
joetommany 6 months ago
@Bigdaire It needs admin/root permissions to change it! it wants ur passwd because it needs permission!
buildingmovies 1 year ago
Nice end song
platonist21 1 year ago
What was the song at the end of your video?
stevaq 1 year ago
Men I Have A Problem
What About Moving Or Copying A File In A Selected Directory
EG:
A File Form One User To Another User
iLoveeApple 1 year ago
y iz 1t bl3arry here 0n ur 0th3r v1d30s you have b3tt3r quiality
Roliva213b 1 year ago
My friend is admin on his computer and forgot his password to log in, will this sudo passwd "user" work? I recommended that he boot up in root and create a second admin, but if this works then it would be so much easier
malakov5 1 year ago
No, I don't think this will work. Mac requires an admin password to use the sudo command.
spawnofgravy 1 year ago
just type in your own password. terminal is just making sure you are who you say you are.
Babkockdood 2 years ago
type sudo before the command:
sudo passwd Guest
guest has a magic password to begin with.
macheads101 2 years ago
is your account a root?
jj987987987 2 years ago
HI, do know all of these commands by heart, or do you have them written down?
ridthedelusional 2 years ago
I'm sure he knows them all. It seems odd because the Terminal isn't relevant to you, isn't personal, but to someone who's familiar with the Terminal it's just like knowing how to use the Dock and Spotlight and Finder. Do you have CMD+C and CMD+V memorized, or written down?
Everything you can do in Finder is a GUI analogue to something you can do from the Terminal. What Finder permits is a small subset of what you can do from the Terminal, as the shutdown example demonstrates.
teluial 2 years ago
yea that makes sense.
ya about every command memorized, they're so handy...
ridthedelusional 2 years ago
what do i do if i no longer know my admin password
MrLombreglia 2 years ago
we have to videos, one is "How to enable 'root' on a mac" and the other is "make an admin account".
macheads101 2 years ago
passwd: Unable to set extended node credentials for /Local/Default. Authentication failed.
It said this after i tried to change the password, what could i do now? I followed exactly what you said to do.
MrLombreglia 2 years ago
Does your computer authenticate over a network? "e.g" a school computer.
macheads101 2 years ago
im not sure what that means
MrLombreglia 2 years ago
Do you use a networked account system? Is it YOUR computer or you schools or works. Were you there when it was being set up?
macheads101 2 years ago
No it's my home compter
MrLombreglia 2 years ago
did you do this
passwd
oldpassword
newpassword?
Try sudo passwd username
newpassword
confirmnewpassword
macheads101 2 years ago
What can you do if you no longer have your old password, and only have one account. I'm stuck in my computer with no exits, i cant download anything.
MrLombreglia 2 years ago
Power off isn't a command.
macheads101 2 years ago
does the "sudo halt" shutdown the computer. if so what's the difference with
the "sudo shutdown -h now"
labuhan7 2 years ago
There is no difference. Sudo halt does shutdown.
macheads101 2 years ago
thanks, dude. great lessons.
labuhan7 2 years ago
yo dude i need your help when i type sudo passwd
is says password but it wont let me type any thang
baileypetta 2 years ago
It won't display while you type a password, kind of like in other places you see the character as dots.
macheads101 2 years ago
how do you get out of sudo after the command is done
Chremonwheels 2 years ago
After you type that you are no longer in Sudo.
macheads101 2 years ago
howd you change you text to those colors?
freshasalwayz 3 years ago
it sucks but im working with Tiger. i tried both of those and it didnt work
freshasalwayz 3 years ago
Two Ways to do this in Leopard:
1. When you start terminal press Apple+Comma (Apple+,) and then click Settings witch should be one of the buttons at the top of the window. Then set settings for Basic.
2. When terminal is running hold control while clicking the Terminal Dock icon In the New Window menu click Homebrew. There are of coarse a bunch of other themes.
I will remind you that you can't do this on Tiger or Panther, Only leopard.
macheads101 3 years ago
Two Ways to do this in Leopard:
1. When you start terminal press Apple+Comma (Apple+,) and then click Settings witch should be one of the buttons at the top of the window. Then set settings for Basic.
2. When terminal is running hold control while clicking the Terminal Dock icon In the New Window menu click Homebrew. There are of coarse a bunch of other themes.
I will remind you that you can't do this on Tiger or Panther, Only leopard.
macheads101 3 years ago