Using Terminal ("su" command)

Hi, I found this on a Forum and I wanted to do that to resolve a problem with usb headset:
1. Teminal
2. Type: 'su'
3. Type in your admin or root password
4. Type: 'cd /System/Library/Extensions'
5. Type: 'kextunload AppleUSBAudio.kext' (you'll get an error unloading)
6. Type: 'kextunload AppleUSBAudio.kext' (kext will unload successfully)
7. Type: 'kextload AppleUSBAudio.kext' (kext will load successfully)
but when I type "su" it ask for the password but I can't enter it because the only key that works is "Enter"! i don't know anything about Unix etc. so I don't even know what that "su" means. Who can help me?
Thanks
Fabio

FabioG, if you are that unsure of su, take great care. You could wreak havoc with your system. Some info in the link if you scroll down. I very rarely use su or sudo which is only slightly safer by limiting use to five minutes. Take a look in Terminal at man sudo.
http://docs.info.apple.com/article.html?artnum=106712

Similar Messages

  • When ever i use a "sudo" command, it returns "sudo: can't open /etc/sudoers: Permission denied".... HELP PLEASE

    While using terminal, any commands with sudo returns the statement seen in the heading... I have only a basic idea of whats happening, so please try and make the solutions simple.. much appreciated

    Are you being prompted for a password? Are you using the same password you sign in with? Try just entering sudo with:
    sudo su -
    It will ask you for a password and then give you a stern warning about acting as root, where you can really mess up your computer for good if you are not careful. If it won't change to the root account you have a permission problem or a credentials problem.

  • Hey,i forgot my login password,so i changed the password by using terminal command(reset password).now i have new user name with new password,but i can't find  my data which i have saved on mac.please help me out in this matter.

    hey,i forgot my login password,so i changed the password by using terminal command(reset password).now i have new user name with new password,
    but i can't find  my data which i have saved on mac.the storage is showing data used and free space on the disk
    please help me out in this matter.

    How did you change your user name?
    resetpassword wouldn't have done it. If you managed to create a new user, then your data is still in the old account.

  • Terminal does something strange when I use the 'say' command

    Hello,
    I use terminal frequently and have just nocticed something odd. When ever I use the 'say' command it said this:
               -                 -iMac:~                  $ say hello
    objc[1281]: Object 0x7ffcc2b1ee60 of class NSRunningApplication autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
    It doesn't really bother me, but I just want to make sure it is nothing serious
    - Thanks

    Could you describe this in more detail: did Firefox prevoiusly split the image over two pages and now it no longer does that?
    Or is the problem that there are two images, and if they do not both fit on the first page, Firefox is not printing the second page?
    Some page layouts may not print well when split across pages; there are some longstanding Firefox bugs. If this just started recently, those might not be relevant...
    Could you give an example URL of a page that has this problem, and indicate where the cutover is between scale percentages that work and those that no longer work?

  • Filevault encryption paused, despite reset of PRAM and using terminal commands

    I have been trying to partition my HDD but am unable to because file vault encryption is paused - and has been since October 2014.
    I attempted making a new user to see if this would bypass it, but it didn't.
    I have reset the PRAM and have repaired the HDD both in recovery and normal, neither work.
    I have also used terminal command "sudo fdesetup disable" to attempt turning it off, but that doesn't work either.
    Help please??
    Harry

    If you don't already have a current backup of all data, back up before proceeding. There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    Start up in Recovery mode. When the OS X Utilities screen appears, select Disk Utility.
    In the Disk Utility window, select the icon of the startup volume from the list on the left. It will be nested below another disk icon, usually with the same name. Click the Unlock button in the toolbar. When prompted, enter the login password of a user authorized to unlock the volume, or the alternate decryption key that was generated when you activated FileVault.
    Then, from the menu bar, select
              File ▹ Turn Off Encryption
    Enter the password again.
    You can then restart as usual, if the system is working. Decryption will be completed in the background. It may take several hours, and during that time performance will be reduced.
    If you can't turn off encryption in Disk Utility because the menu item is grayed out, you'll have to erase the volume and then restore the data from a backup. Select the Erase tab, and then select
              Mac OS Extended (Journaled)
    from the Format menu.
    You can then quit to be returned to the main Recovery screen. Follow these instructions if you back up with Time Machine. If you use other backup software, follow its developer's instructions.
    Don't erase the volume unless you have at least two complete, independent backups. One is not enough to be safe.

  • SUDO command - How to remove a User using Terminal?

    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?
    Thank you very much for your help.

    10Kg wrote:
    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?
    If your adapt at using Terminal, why don't you hook up a blank external drive, command s boot into Single user root mode,
    ls /Users
    then cd to that directory or mv it to the external drive?
    Any why are you messing with Terminal and on your only copy of your files?
    Kind of risky right?
    Nearly everything on a Mac has been figured out and a safe GUI ability to allow users to do things, there is no need to risk the dangers of the Terminal and unknown under workings.
    But now you have to revert to your backup and start all over like John said.
    Read here for more options
    https://discussions.apple.com/docs/DOC-3046
    https://discussions.apple.com/docs/DOC-3045

  • Using terminal to uninstall program

    I have instructions to uninstal a program using terminal commands...but it won't let me get to the directory were the uninstall program is:
    cd /Library/Application Support/SecurID
    It won't let me go to Application Support folder even though when I list files in the Library directory, it shows up?

    My question might not be clear....trying to get to Application Support folder using terminal and it won't let me.
    Macintosh-3:Library Melissa$ ls
    Acrobat User Data          Favorites                    Printers
    Address Book Plug-Ins          FontCollections                    PubSub
    Application Support Fonts                              Receipts
    Assistants                    Icons                              Recent Servers
    Audio                              Input Methods                    Safari
    Autosave Information          Internet Plug-Ins          Saved Searches
    Caches                              Keyboard Layouts          Screen Savers
    Calendars                    Keychains                    Sounds
    ColorPickers                    LaunchAgents                    Spelling
    ColorSync                    Logs                              Voices
    Colors                              Mail                              iMovie
    Compositions                    Mail Downloads                    iTunes
    Cookies                              PreferencePanes
    Documentation                    Preferences
    Macintosh-3:Library Melissa$ cd Application Support
    -bash: cd: Application: No such file or directory

  • Using Sent Unix Command in ARD 3 with proxy authentication

    I'd like to use Unix commands to update Apple software through ARD thus allowing me to lock the computer screen before the process using the ARD command to do so, thus keeping the users from interfering with the process .
    Our network utilizes password protected firewall proxy that hangs ARD when using the softwareupdate command through ARD's "Send Unix Command..." at the point in which it would ask for authentication if using the same command in the terminal.
    Is there a Unix/terminal script or a series of script commands that could be modified to wait and enter the appropriate authentication at the previous mentioned prompt?
    I've researched this topic on this forum and discover a few post that states it is not possible but they are fairly old posts so I am hoping ARD 3 has some scripts or commands that can pass thru a username and password

    Welcome,
    I use the "System Events" handler, e.g.:
              tell application "System Events" to delay 5.5
              tell application "System Events" to keystroke "K"
              tell application "System Events" to delay 0.5
              tell application "System Events" to keystroke return
    Regards,
    Shawn

  • Using Terminal in Mac OSX to program and test java

    I bought a book on java and it says I should not use a JDK like Net Beans when first learning java.
    Right or wrong I would like to know how to use terminal to program and compile simple scripts.
    So my question is:
    How do you go about setting up the computer to use terminal to write and compile a java program? I know my Mac sees java in terminal because tells me Im running "version 1.5.0_07"
    I just need a link to some info on how to get started using Terminal for my command line with java.
    I think if I could get a path set up from the command line to my text file and have javac see it I would be in pretty good shape. At least for now.
    If I use a text saved plain text file (.java) how do I set up a path to it using javac from the command line?
    Where can I find or link to this kind of info?
    Macbook Pro Mac OS X (10.4.10)

    ayusman_dikshit wrote:
    Hi,
    seems like you have not tried out a few things.
    1. Set up the JAVA_HOME environment variable. (I assume you pretty much know it) the folder where java is installed.
    2. set up the environment variable to point to the bin folder inside the java installation folder.
    3. open up a console (it seems from your post you know it.), type java -version see the java version.
    4. type in javac, press enter: you should get the javac options.
    5. type in java, you should see the java options.
    Write your programs in a text editor, save it as somename.java.
    open a console, change to the directory containing the java file.
    type: javac somename.java <PRESS ENTER>
    you should get the compilation errors if any.
    if not
    type in: java somename.java
    Hope this helps.
    Regards,
    AyusmanStep 1 and 2 are generally not needed. Mac OS X comes with Java configured up and running right out of the box.

  • Using Terminal to Find Locked Files

    Hello all,
    I am a photographer and often use the locking feature on my camera to lock certain images, ones that are good shots.  With Windows, I was able to sort by whether a file was locked or not.  However I am finding that Mavericks does not have this feature.  Therefore I have resorted to using terminal to find locked files.  However I was wondering if I could get assistance in creating a script/command that would take the results of the files I found locked and either copy or move them into a subfolder.
    IE: I have an event folder called BRB-Team1VsTeam2.  I use the command "find . -flags uchg" to find the locked files.  What I need to do now is get the returned result and either copy or move into a subfolder called "locked".
    I tried "find . -flags uchg && cp /locked" but I know the logic isn't quite there but I haven't played with terminal too much to know what I am doing.
    So anyone have a solution to this?  Or know of an application to at least let me search/filter/sort by the file status (IE: Locked vs unlocked)?

    Here is the basic idea, adjust as necessary. The -d option limits the depth into the folder you are searching. You don't need it; I just added if you want to limit the depth into subfolders.
    find /search/path -d 1 -flags uchg -exec cp {} /destination/path \;
    You could roll this up in an Automator workflow, Service, or Folder Action if you want:
    By checking the "Show this action when the workflow runs" you can choose the destination folder at run time. If always the same, leave it unchecked.
    A Folder Action would work on the items added to a particular folder. The find command would have to be modified.
    A Service could be used to pick the source folder, or to add a shortcut command.

  • Using terminal to recover files

    I have a new MacBook Air running OS X v. 10.10.2.  It will not boot.  I have a day-old Time Machine backup, but would like to recover work I did today using Terminal before I restore from backup. Is there any way to do this?

    Try resetting password.
    OS X 10.7 Lion, 10.8 Mountain Lion & 10.9 Mavericks
    Reset Password starting from Recovery HD
    Start the computer,then press and hold down command and R keys to start into recovery partition.
    When you see the Apple logo, release the keys.
    Wait until  OS X Utilities window shows up.
    Move the mouse to the menubar at the top and click "Utilities", then select "Terminal"
    from the drop down.
    Terminal window will appear.
    Type in   resetpassword   and press enter on the keyboard.
    Leave the Terminal window open.
    Reset Password Utility window will open with Macintosh HD selected.
    Select the user account from the popup menu box.
    Enter a new password.
    Reenter the new password for the user.
    Enter a hint.
    Click the "Save" button.
    Click  in the menubar and select Restart.
    Log in.
    If Keychain dialog box appears, select “Create New Keychain”.

  • Mass filename changes using terminal? How?

    Hello,
    I recently put a Linksys NAS on my network. Unfortunately, the EXT3 format used on the disks does not like filenames with special characters such as "/" or "?". So I cannot copy files from my PowerBook to the NAS with these characters in their names.
    A search of my hard drive shows 800+ files with these forbidden characters.
    Is there a way to use terminal (or any aspect of OS X) to do a mass change of these characters to a more acceptable character (i.e. changing all instances of "/" to "-")?
    Thanks for the help.
    Jim

    Jim
    tcsh: Invalid null commandAh, you're using tcsh. Bad news! I'm sure it could be made to work, but I've switched to bash because it is better for this sort of stuff. Gary will tell you to switch to zsh, but for now bash will do. I just tried the command as posted and tcsh complained loudly!
    First point: often when you try to copy/paste from a browser window, you get an extra space appended to the line. It often doesn't matter, but it could here (may explain the "tcsh: Invalid null command" message). So copy the commands into a TextEdit document, which you have changed to Plain Text from the Format menu. Then be sure not to include any trailing space.
    Second point, we'll scrap the use of sudo since it is only your Home directory that you are interested in.
    Third point: as I said, we'll use bash. The prompt will change to a '$' instead of a '%'. When you've finished, you can return to tcsh with a plain exit command.
    So, copy and paste the following into the Terminal window, one line at a time, with a return after each line:
    <pre>bash
    find -d ~/Documents \( -name "?" -o -name ":" \) -exec echo 'mv "{}" `echo "{}" |
    sed -e "s^\?^_^g" -e "s^:^-^g" ` ' \; | sh</pre>This should work—it did for me!
    Note:
    it returned a > prompt with nothing else on the line.It will do this after the second line above—it is an invitation to complete the command

  • Using Terminal.app with X11

    Dear Apple Discussions,
    I am trying to get X11 and Terminal.app to work together. I read on the forums here that it is possible by going here.
    I followed the instructions to the best of my abilities, yet when I try and open up Emacs in Terminal.app (yes, I downloaded fink and installed the windowed version) I don't get a new window (yes, X11 is running).
    When open up a Terminal window I get the message:
    DISPLAY has been set to .0
    which seems to me to be incorrect.
    Any ideas?
    On a side note, is there a way of changing the META key from being ESC to ALT as it is supposed to be?
    Thanks and sorry if there was a similar post to this, but I couldn't come up with a good query.

    Hi AppleMonkey,
       I'm a little confused by this discussion of the ALT key as Apple keyboards don't have an ALT key. Thus, I assume that you have a keyboard designed for one of those other types of computers. Anyway, X11 does use the ALT key terminology so we do have to discuss it regardless of what type of keyboard you have.
       Long ago someone posted instructions for this that added both Alt_L and Alt_R to Mod1, like so:
    clear Mod1
    keycode 66 = Alt_L
    keycode 69 = Alt_R
    add Mod1 = Alt_L
    add Mod1 = Alt_R
       Of course the main problem is to fix your ~/.xinitrc. The reason that your X11 quits is because X11 replaces it's init process with the execution of the ~/.xinitrc. When that script quits, the process ends, as you observed. The way to keep it running is to replace the script process with a new process that is then in control of XWindows. Traditionally, this process is the window or desktop manager and process substitution is accomplished with the "exec" command. By default the last command in Apple's /etc/X11/xinit/xinitrc is:
    exec quartz-wm
    which passes control of the XWindows process to Apple's Quartz window manager. That default xinitrc also contains commands that process the ~/.Xmodmap file and it is invoked automatically if you have no ~/.xinitrc. Thus, if you're using Apple's X11, it should be sufficient to delete your ~/.xinitrc. Alternatively, you could copy that default file to your home directory with:
    cp /etc/X11/xinit/xinitrc ~/.xinitrc
    If you're using some other version of X11, you should still use the above command to copy in the default xinitrc and then customize it to suit your needs. However, make sure that the "exec" command is the last one in the script and that every other command returns immediately.
    Gary
    ~~~~
       It's a funny thing that when a woman hasn't got anything
       on earth to worry about, she goes off and gets married.

  • Using unix 'diff' command to publish iweb to non .mac server

    It is a common problem that you can't upload incremental changes to a website a web server that is not a .mac. Recently I found that the unix (shell) 'diff -qr' works nicely for this.
    However I can't seem to get this to work in automator. That is where I need some help.
    What I did :
    I have an iweb website in my directory
    Documents/website
    I made a second directory where I store my uploaded version of the website:
    Documents/websiteonserver
    Using a shell script I want to compare the differences between these two directories using the diff command in a shell script. When I run 'diff -qr websiteonserver website' in a terminal window, it gives a nice overview of which files are changed and which ones are new. When workin with iWeb this saves me a lot of time uploading my homepage to a non .mac server. I can only upload the changed files, which is usually only a few. Diff does not look at timestamps (which are useless in the iweb case) but it actually looks into a file and with the -q option it stops when it finds a difference. With the -r added (-qr) it also looks through all subdirectories and compares files with the same name.
    I like to automate this process so that my wife can update our family homepage with just one mouseclick (or as few as possible)
    Unfortunately the diff command in automator gives an error, and there's no info on why it does this.
    The commands I gave:
    cd Documents
    diff -qr websiteonserver website
    (using PWD i verified that the path is correct like this). The only stumbling block for automator seems to be the diff command. Anybody any suggestions on this?
    The next challenge is to take the diff output and use that to upload only changed/new files to a ftp server.
    Any help / ideas are welcome
    Greetings,
    Adriaan

    Dear Cyclosaurus,
    I used a single command as us specified. It really helped to add the path to the directories I wanted to compare. So now at least I got it two work partly:
    It seems to work only if I compare two files. Comparing directories still does not work. Maybe diff generates some kind of error code when doing this??? It does not do that in the shell.
    If I compare all files in directories + subdirectories , the workflow does not work. It seems as if it only accepts a single output line or so from the diff function. If there is more output (or maybe some newline character) the workflow halts. Very peculiar.
    mmm.... I will try to make a shell script which I can run in automator. In the script file I will then generate a txt file. Then the automator can run the script and then it can open the resulting file in a text editor. See if that works.
    mmm nope. I made a script like this:
    #!/bin/bash
    diff -qr ~/Documents/websiteon_theserver/ ~/Documents/website/ > ~/Documents/logfile.txt
    I modified the atributes to executable and I could run it from the command line. The logfile.txt was created and has the correct info. I could not run it from automator...
    I did copy the last line from the script into automator. And also there it does create the logfile, but the automator still says there was an error and stops.
    maybe I should try Applescript, were it not that I am totally clueless on that language...

  • Using Terminal to copy all files (hidden and not hidden) and folders from one place to another

    How -using Terminal- can I copy all files (hidden and not hidden) and folders (and their contents) from one place to another

    ditto
    DITTO(1)                  BSD General Commands Manual                 DITTO(1)
    NAME
         ditto -- copy directory hierarchies, create and extract archives
    SYNOPSIS
         ditto [-v] [-V] [-X] [<options>] src ... dst_directory
         ditto [-v] [-V] [<options>] src_file dst_file
         ditto -c [-z | -j | -k] [-v] [-V] [-X] [<options>] src dst_archive
         ditto -x [-z | -j | -k] [-v] [-V] [<options>] src_archive ...
               dst_directory
         ditto -h | --help
    DESCRIPTION
         In its first form, ditto copies one or more source files or directories
         to a destination directory.  If the destination directory does not exist
         it will be created before the first source is copied.  If the destination
         directory already exists then the source directories are merged with the
         previous contents of the destination.

Maybe you are looking for

  • Dreamweaver CS4 interface problems in Win 7 Ultimate 64bit

    I'm experiencing some frutratingly bizzare behavior with Dreamweaver CS4 and Windows 7 Ultimate 64bit and I'm hoping someone might now how to fix the issues. 1) When creating a new site by selecting "Site/New Site..." or "Site/Manage Sites..." the fi

  • Linking between to costum components

    Hi everyone! I've just started using flash catalyst a couple of days ago and I am loving every minute of it, but I have found a problem that I couldn't find a solution for by googling (never happened to me before!) So, I'm a wedding album designer an

  • Adobe Bridge CC won't work

    Bridge asked me to fix or so something with the cache. I did tha it it has been building criteria now for hours. It's obviouls not working. Should I re-download the program. this is a big pain not being able to use it.

  • Fusion drive vs ssd 256gb which is better

    hoi gang, im in the market for a new mac mini. and i need some help with choosing the right options when buying it. " i do music " and i need a mini that fast and runs at the highest possible speed when making music. and of course using it for some f

  • Is Blackberry going to die a slow and painful death?

    I am an avid Blackberry user, with my Torch 9800 bridged to my 64gig Playbook, and I love all of the functionality and uses that they have. The trouble is that I am sick of seeing all of these apps that are only made for iPhone,iPad, and Android devi