MacBook Pro :: SUDO Command - How To Remove A User Using Terminal

Mar 30, 2012

So I just inherited from my coworker's MacBook Pro. I then decided to transfer all of my files and realized that the root folder was still on his name. I changed the User's name in "System Preferences" but that did not change the root folder's name. I then went to Terminal and tried to change the folder's name using the "mv OldFoldersName NewFoldersName"  and the prompt said Permission denied. I then used "sudo mv OldFoldersName NewFoldersName". After restarting my computer, all the files were gone and I landed on a "LION first time USE" type of Desktop. All my files are gone and terminal shows me two users' names under /Users/ => OldUser and NewUser.

What can I do to recover my old files? What can I do to repair my Mistake and only have one User?

Info:
iMac (21.5-inch Late 2009), Mac OS X (10.7.3)

View 3 Replies


ADVERTISEMENT

OS X :: Cannot Run Sudo Command In Terminal

Nov 29, 2009

I can't seem to run a sudo command in the OS X terminal. Every time I run a sudo command, I get no response, as if the command is not run at all. My sudo appears to be broken somehow. I've got a problem with mounting an NTFS drive that is dirty. I have a command I am trying to run using the "sudo" command, but it is not working.

Code: sudo /usr/local/bin/ntfs-3g /dev/disk0s3 /Volumes/WIN XP -o force

After the sudo, I am prompted for my password, but after that the only response I get is another prompt, as if the command was totally ignored. I have tried many different commands after the sudo, and cannot get a response from anything. I even tried "sudo tcsh", which should open up a new shell, but nothing. "sudo ls" also shows nothing, just another prompt.

View 11 Replies View Related

OS X Yosemite :: Sudo Command Missing From Terminal App

Dec 3, 2014

Here is a screenshot that shows missing sudo command.  How do I restore it?  I am not a linux expert...

Info:
MacBook Pro with Retina display, OS X Yosemite (10.10.1)

View 3 Replies View Related

OS X V10.7 Lion :: Terminal Command To Give Admin User Privileges In Finder?

Jun 29, 2012

Someone gave me a terminal command that allowed my OS X Admin user permission to make an application alias without having to enter my user password. I've since forgotten the command and wish to use it for a new admin user since my old admin has gremlins on a number of apps but new users are not troubled in same way. I can't beleive Apple would default to requiring a password to make/edit an alias but there you go the distrurbing trend towards their total control of my desktop advances… not to mention User SysPrefs leaking over from another user for keyboard shortcuts and sounds?

Info:
MacBook Pro, Mac OS X (10.7.3), 10.7.4 actually Wacom 6x11

View 4 Replies View Related

Software :: Terminal Cannot Run Sudo

Jun 7, 2010

I open up terminal, this shows up Code: Last login: Mon Jun 7 23:46:54 on ttys001
-bash: sdkfolder: No such file or directory xxxx-xxxxxs-MacBook-Pro:~ xxxxxx$ why is that -bash line in there?Also, I cannot run 'sudo' at all. I'm on an Admin account, and I have enabled root permissions..

View 4 Replies View Related

OS X V10.7 Lion :: Sudo Command Requires A Non-blank Admin Password?

Jul 1, 2012

After entering sudo command, terminal asks for password. After that it will not accept typing in password, I type and nothing appears. If I try to paste in password nothing happens.

Info:
MacBook Pro, Mac OS X (10.7.4)

View 1 Replies View Related

OS X V10.6 Snow Leopard :: Cannot Inherit Backups As Sudo Tmutil Not Found In Terminal

Feb 11, 2012

I get a "sudo: tmutil: command not found" message on terminal when I am trying to inherit backups as per the fantastic instructions on the website by pondini. What does it mean and how can I correct it? 

My old backups on time machine are not highlighted on time machine so cannot restore them. This is either because I have restored the OS or repaired the external HD used for backups.

Info:
MacBook, Mac OS X (10.6.8)

View 8 Replies View Related

MacBook Pro :: Can I Screw Up My Mbp With This Terminal Command

May 28, 2010

Just bought a new MacBook Pro yesterday and I'm having trouble getting Time Machine to work with my NAS (WD My Book World Edition which supposedly supports Time Machine after their last firmware update). Time Machine sees it and starts writing to it but then stops recognizing the external NAS drive even though it's still connected to the network and I can access it and its files through the Finder.

So I did some Googling and came across this article and this command line...

View 9 Replies View Related

MacBook Pro :: How To Execute Make Command In Terminal

Mar 7, 2012

Run in the terminal inside the make command, prompt:"-bash:make:command not found" My system version is Mac OS X 10.7.3 Xcode Version is 4.3. How to execute make Command?

View 5 Replies View Related

OS X :: Top Command In Terminal?

Sep 30, 2009

Can anyone tell me what this "*" means beside mathematica and mathkernel? I'm using snow leopard.

View 5 Replies View Related

OS X :: Terminal Command For OS X?

Mar 5, 2010

Simple request and for some reason my google-fu is failing me. How do I change the volume (drive not audio) in the Terminal app in OS X. I am using SL.

View 24 Replies View Related

OS X :: Command To Clear Terminal?

Oct 5, 2010

Is there a command to clear the terminal screen that works like 'cls' on Windows? I know about 'clear', but clear just moves the prompt on the top of the screen, leaving the previous output visible if I scroll up.

A friend suggested 'clear_console' (I think he's on debian) but I can't find it on OS X or MacPorts.

View 7 Replies View Related

OS X :: Command Not Found In MAC OS Terminal?

Oct 29, 2010

I want to build a redboot kernel in a wireless router, the command required from my newly acquired knowledge is insmod and modprobe.

However from the mac 10.5.8 terminal it says that the command is not found. I have installed gcc , sdk compiler support and enabled the super user as well.

View 3 Replies View Related

OS X :: Run Terminal Command At Startup?

Nov 29, 2007

Seems like a simple thing to do, yet I've searched and not found an answer.

Automator doesn't seem to have a terminal function...?

Does anyone know?

View 8 Replies View Related

OS X :: How Can I Easily Run A Terminal Command

Nov 19, 2008

I want to run some terminal commands fairly often... yet I don't want to have to type them. I just switched from windows, so I need some help as to how to do this.

In windows I would've just used a batch file to run command prompt commands. I need something that will let me just run it and it will automatically run the commands.

View 3 Replies View Related

OS X :: How To Reverse Terminal Command

Mar 4, 2009

I ran this command in terminal to change my screen shot to jpg format. Now my screenshot doesn't work. Any idea how to fix or reverse this?

View 2 Replies View Related

OS X :: Terminal Command For Current App?

Apr 9, 2009

Is there a command for terminal to get the current application?

View 4 Replies View Related

OS X :: How To Fill Out This Command In Terminal

Jun 20, 2009

can someone please tell me how to fill out this command in terminal?

./compressIt /to/image/file.iso

View 3 Replies View Related

OS X :: Terminal Says Command Not Found?

Jul 2, 2009

Last login: Tue Jun 30 15:38:02 on console

-bash: 2-18-09: command not found


I can use the Control>C command to quit that and return to normal. But it's a waste of time and I can't seem to figure it out. A Genius Bar Genius said to Archive and Install, but I don't think it's necessary. I just want to know how I can find whatever it is that's screwing it up.

View 14 Replies View Related

OS X :: How To Run A Terminal Command When Logging In

Jul 23, 2010

What is the best way to run a terminal command when logging in? And by �best� I mean �fastest.� I�ve been encapsulating my commands in an Applescript, but it�s terribly slow to load, and I�m hoping there�s some UNIX back-end I can use to speed things up.

Specifically, I want to run a shell script that I wrote. It decrypts some folders inside my Home directory so I can use them (this part works seamlessly, I just need it to auto-run itself).

View 13 Replies View Related

OS X :: Command For Opening Files In Terminal?

Jun 25, 2006

You'd think this was all pretty basic. It probably is.

I'm trying to open/edit '/usr/local/php5/lib/php.ini' with TextWrangler through Terminal. The TextWrangler part isn't an absolute requirement. The directory exists and I'm assuming the file does as well. (No 404-esq errors during my fumblings and it was a standard installation of PHP5)

Also, is there any way to browse through the above directory using the Finder's GUI? That would be nice.

View 5 Replies View Related

OS X :: Terminal Erase Disk Command?

Apr 22, 2009

I need to erase a disk I bought with NO formatting. I shouldn't have initialized it when I connected it, and now I need to erase it but do NOT want to format it.

I've been trying to use diskutil eraseDisk %noformat% /dev/disk1

Like the diskutil eraseDisk instructions tell me to, but it won't take.

View 3 Replies View Related

OS X :: IP Address Terminal Command On Network?

May 27, 2009

I used to know a command that would show all of the ip address and the name of the devices on your network. I have not use the command in a while and I forgot it.

View 11 Replies View Related

OS X V10.5 Leopard :: Undo A Terminal Command?

May 12, 2012

I was frustrated with Google Chrome quiting whenever I accidently pressed command q, so I tried out some terminal commands I found online. One was defaults write NSGlobalDomain NSUserKeyEquivalents '{"Quit Google Chrome" = "@Q"; "Preferences..." = "@;";}' I don't know what the other was. They stopped chrome from quiting with command q, but now I can't quit chrome AT ALL.  Is there a way to undo everything I've ever done in terminal?  I should not be touching it...

View 5 Replies View Related

OS X Mavericks :: Removing Terminal Command

Dec 5, 2014

I would wish to remove this command

defaults write com.apple.finder NSQuitAlwaysKeepsWindows -bool true 

What would be the terminal command?

Info:
iMac, OS X Mavericks (10.9)

View 5 Replies View Related

Applications :: Terminal Command To Get External IP Address

Mar 13, 2004

Is there a terminal command that will display your external IP address? ifconfig and netstat only seem to report my local/network address, so I've been using curl and awk to parse [URL]. But I'd prefer a way that doesn't rely on an http call. Not to mention that my method will fail if/when dyndns changes the format of that page.

View 14 Replies View Related

OS X :: Dock Not Restart By Entering Terminal Command

Feb 11, 2009

I've just tried following this tutorial. Code: [URL]. After entering the Terminal command I restarted the dock using. Code: killall Dock. And apparently that was supposed to restart the dock, however it's killed mine and it will now not start at all. Any ideas on a Terminal command or other way(s) I can get my dock to show again?

View 12 Replies View Related

OS X :: Safari Private Browsing Terminal Command?

Jul 1, 2009

I'm trying to create an automator that will open safari, enable private browsing, go to my site, and log myself in. The problem is I need a terminal command line that will ensure private browsing is enabled.

View 1 Replies View Related

OS X :: Terminal Command For Changing Default Sounds

Aug 6, 2010

I'm looking to change some of the OS X default sounds (like the very annoying "boing!" drag-and-drop sound). I'm not talking about the alert sound that can be changed easily via the "Sound" function in System Preferences. I'm looking for the Terminal commands that would enable me to substitute an existing Mac OS X sound for the ones I don't like. (I'm not looking to create or find online other sounds; I'm happy to just use the ones that come with Mac OS X.) Some weeks ago I found a web page that described the necessary terminal commands and also where to find the .aiff files, but I've spent the last week trying to find that page again with no luck.

View 1 Replies View Related

Software :: Terminal Command To Get Usage - Each Cpu Core?

Aug 12, 2010

What is the terminal command to get the usage of each cpu core? I have tried top command but its return only overall cpu usage and also cpuwalk.d command based on the process.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved