Terminal and Root user

Hi, I am new to Mac, just bought a Macmini.
1. I was trying to lanch multiple Terminal session, it seems I can not. Can I run multiple terminal or xterm etc?
2. How do I switch to root, or what is the default root password? I was saying there are some process under root account.
I am an Unix guys for years.
Thanks a lot.
Howard

1. I was trying to lanch multiple Terminal session, it seems I can not. Can I run multiple terminal or xterm etc?
you just press command +N and it will open a new terminal shell. You can run many processes ontop of each other in different shells.
2. How do I switch to root, or what is the default root password? I was saying there are some process under root account.
There is no default root password, you have to enable and create the root password. This is easy to do use the following command.
sudo passwd root
Then to change to root in your terminal use the command
su
However in most cases you don't need to login to your terminal as root as you can just use the 'sudo' command.

Similar Messages

  • Sudo command and root user Problems.

    Hi all,
    I am new to macs but am fairly good with windows computers. In the terminal on my mac if i type in any command with sudo on the front i get a:
    Whats more i also cannot log into the root user of my mac i just get a wrong password error. I know its the right password and i have tried to change it but it doesn't work!
    Please help me!
    Thanks in advance
    Ed

    yes, it was nailed for gutbunny, but this did not nail it for me. situation: new 32 GB USB flash drive that was allowed to go to sleep with mac book pro 15" 2.33 using mac os 10.4.11. it woke up with no permissions to write to owner or admin user or root. did the following:
    GeoG5-2:/Volumes/DiskGO george$ sudo chflags nouchg .
    chflags: .: Read-only file system
    chflags: .: Read-only file system
    GeoG5-2:/Volumes/DiskGO george$ pwd
    /Volumes/DiskGO
    GeoG5-2:/Volumes/DiskGO george$ ls -l
    total 128
    drwxrwxrwx 1 george george 16384 Feb 14 21:43 !DrawingLT
    drwxrwxrwx 1 george george 16384 Feb 14 19:14 !TeachingLT
    drwxrwxrwx 1 george george 16384 Jan 19 08:54 !Words(new)
    drwxrwxrwx 1 george george 16384 Feb 15 08:26 DiskGO stuff
    short answer is that neither admin george nor root can unlock this thumb drive. and i've tried this with lock/unlock in both positions. should i send it back to the mfgr for replacement?
    thanks
    george

  • Installing CC Desktop using "Terminal" or "Root User"

    Can someone guide me in installing CC Desktop using either 'Root User' or "Terminal"? I was advised by an Adobe representative by he failed to show me how. I am trying to do this because everything else has not worked.
    Thx.

    Once you log in to Root user account ,
    Try below steps :
    1)
    Launch Activity Monitor and "Force Quit" all the process related to Adobe like Creative Cloud, CoreSync, AAMupdater, AAMupdater notifier, Adobe Crash demon from Activity monitor.
    2)
    Click on the Finder and look for the options listed next to Apple Icon located at the top left corner of the Desktop screen and click on "Go" menu button and select "Utilities" option.
    (Applications>Utiliites)
    Locate Adobe Creative Cloud and Adobe Application Manager folder under Utilities window and trash both folders.
    3)
    Trash Adobe Creative Cloud from Applications well.
    4)
    1) Right click on Finder icon and  select "Go-ToFolder " option.
    2) You will get a text box, type-in below command and then hit 'Return' key.( Do not miss ~ symbol)
    ~/library
    3)Then navigate to Application Support>Adobe.
    Open Adobe folder and trash folders named AAMUpdater and OOBE.
    5)
    1) Right click on Finder icon and  select "Go-To" Folder option.
    2) You will get a text box, type-in below command and then hit 'Return' key.
    /library
    3)Then navigate to Application Support>Adobe.
    Open Adobe folder and trash folders named AAMUpdater ,Adobe Application Manager and OOBE.
    6)
    Click on the below link and download & run Adobe Cleaner tool :
    Select the option "Adobe Application Manager for Mac OS X 10.6" and then click on "Clean up Selected" .
    https://helpx.adobe.com/content/help/en/creative-suite/kb/cs5-cleaner-tool-installation-pr oblems/_jcr_content/main-pars/…
    7)
    Click on the below link and download and install Adobe Application Manager.
    http://download.adobe.com/pub/adobe/creativesuite/cc/mac/ApplicationManager8.0_all.dmg
    Once the installation is completed , the install box will disappear, '
    Then open Applications folder and locate Adobe Application Manager icon and double click on it.
    It will start update process and gets update to Creative Cloud desktop app.
    Like Show 0 Likes (0)  Reply  Actions

  • ARD and root user - how do I give access?

    Any suggestions on how to set up ARD 3.0 access to a Mac OS X 10.3.9 computer which is running as root? When one goes to Sharing to set up ARD access the root user does not appear in the list of users even when it is enabled and the root user is loged in. BTW, I need this as the system is running as a 4D database and web server and (for the present) needs to be run in root to be visible to web clients.

    "Because I need to view and manage an application
    (4D Server) that is running in root."
    Yes, I know. Giving an admin user ARD access has no
    bearing on what user...in your case "root"...is
    logged into the computer.
    Run 4D while logged in as root, but authenticate as
    an Admin user for ARD access.
    I am now back in my hospital and have tried what you suggest - and it works perfectly. So - very many thanks for providing the correct solution - I owe you a beer next time you are in England or I am in Chicago!
    G4 twin 1.4   Mac OS X (10.3.9)   Numerous others / large 4D site

  • User's Desktop locked out and root user can't fix it

    check this out:
    I've got a user on this machine that can't save anything to her desktop. The folder behaves like she has no write permissions, but a quick ls -al shows that the folder is owned by her, and her user has permissions to rwx . Even stranger, when I sudo su and try to issue a chmod for that folder, root is denied permission to do so. Stop me if I'm crazy, but isn't root God? Last time I checked, on a *nix based system, root can do anything it wants.
    :/Users/xxxxxx root# chmod 755 Desktop/
    chmod: Desktop/: Operation not permitted
    yep...even though I'm root...not allowed....
    even stranger
    drwx------ 42 xxxxxx xxxxxx 1428 Nov 19 22:43 Desktop
    and the user xxxxxx can't even write to the folder even though the
    user has permission to....

    yes, it was nailed for gutbunny, but this did not nail it for me. situation: new 32 GB USB flash drive that was allowed to go to sleep with mac book pro 15" 2.33 using mac os 10.4.11. it woke up with no permissions to write to owner or admin user or root. did the following:
    GeoG5-2:/Volumes/DiskGO george$ sudo chflags nouchg .
    chflags: .: Read-only file system
    chflags: .: Read-only file system
    GeoG5-2:/Volumes/DiskGO george$ pwd
    /Volumes/DiskGO
    GeoG5-2:/Volumes/DiskGO george$ ls -l
    total 128
    drwxrwxrwx 1 george george 16384 Feb 14 21:43 !DrawingLT
    drwxrwxrwx 1 george george 16384 Feb 14 19:14 !TeachingLT
    drwxrwxrwx 1 george george 16384 Jan 19 08:54 !Words(new)
    drwxrwxrwx 1 george george 16384 Feb 15 08:26 DiskGO stuff
    short answer is that neither admin george nor root can unlock this thumb drive. and i've tried this with lock/unlock in both positions. should i send it back to the mfgr for replacement?
    thanks
    george

  • What's the difference between the Admin and Root accounts in Mac OS X?

    Does anyone know what the difference is between the Admin account and Root user option on Snow Leopard?
    I've read on Network Security forums that I should have two accounts on my Macs (I'm the owner and only user), 1 for Admin controls / access and another for general use.  I was under the impression that I only needed one account, and even though it was specified as an "Admin" account I didn't really need to worry about it as I would still need to go into Directory Utility and "Enable Root User" to really allow a program to gain access / control of my Mac.
    Can somebody please clear this up for me?
    Thanks in advance
    L Rembrandt

    Root can do anything, without further authentication.  There is only one root account and it is disabled by default.
    An admin user can do many things without further authentication, but can become root by authenticating with his own password.  There can be any number of admin users.
    A standard (non-admin) user can only modify the contents of his own home folder, but can become and do admin and even root tasks by authenticating with an administrator's username and password, if he knows it.
    Most security professionals recommend running with the fewest privileges as are necessary, elevating to the higher privilege only when needed, and returning to the lower privilege when the higher one is no longer needed.
    Apple recommends running as a non-admin user all the time.  It is the best for security, and is convenient too, since nearly all admin and root tasks can be done from a non-admin account, simply by authenticating with an admin username/password when prompted.  I do admin and root tasks from my non-admin account all the time this way.  My admin account almost never gets used; it has been months since I actually logged in to it.
    If you are not already using a non-admin account, it's easy to switch:  Just create a new account with admin privileges, and then remove admin privileges from your own account.

  • "nice" command denied in terminal even as root user

    Hello,
    I am trying to run the "nice" command in terminal as an admin (me):
    nice -n -19 /Users/Michael/Desktop/Minecraft.app
    It failed with this error:
    nice: /Users/Michael/Desktop/Minecraft.app: Permission denied
    So I logged in a the root user and tried again and it still had the same error.
    I have 2 main questions:
    1, Why couldn't I run this command as a root user?
    2. As an admin, shouldn't I have been able to run the command without logging in as the root user?

    I hope it's ok if I bump.
    bump

  • How do I disable root user? Code failed in terminal!

    Hi,
    I've had numerous problems with my laptop ever since taking it in for repair to change the logic board middle of last year. Since then I've had problems with the RAM (both sticks have had to be changed twice), the logic board changed a second time AND the battery changed. The amount of trips I've had to take to apple stores are ridiculous.
    To top it off I noticed that in the activity monitor there are numerous users other than myself running. The majority of users are root followed by _windowserver, _usbmuxd and _netbois. As about 50% of the users are root I decided to take a trip to an apple 'genius' bar to try and turn all users back to admin, the guy didn't have a clue what the root user was and said that it was fine...his answer was to reboot my laptop however my lacie hard drive recently broke and have no where to save my work.
    So far ive tried two options to fix this myself but i am getting no where. Ive tried adding the code on the terminal via utilities but it says that its failed (https://discussions.apple.com/thread/1636445) And theres no disable option via directory utility. (http://support.apple.com/kb/HT1528?viewlocale=en_US&locale=en_US)
    Is there any other way I can fix this?
    Thanks.

    It's normal to have a fair number of processes owned by root.
    I should leave them alone if I were you.

  • After enabling root user terminal won't do anything at all.

    I enabled the root user with Directory Utility. this all workedfine untill I opened up terminal and found that it would not do anything. it will not even loar the usual fields showing where the curent directory is or what user i'm loged in as ect. nothing seems to working and I can type but it will not execute commands. What can i do to fix this?

    Besides answering X423424X's questons, it would be helpful if you would actually post any errors you are seeing in the terminal (Copy and Paste would be good).  As it is now we have to guess.
    Also as X423424X says, enabling root in and of itself would not cause Terminal problems.

  • HT1528 How to enable root user using terminal for mac lion 10.7.5 (step by step)

    I been trying to find the terminal version of creating a root user since I don't know my admin password and want to delete that user.

    You don't need to enable the root user. Just change the password for the account.
    Forgot Your Account Password
    For Lion, Mountain Lion, or Mavericks
        Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         When the menubar appears select Terminal from the Utilities menu.
         Enter resetpassword at the prompt and press RETURN. Follow
         instructions in the dialog window that will appear.
         Or see:
           Reset a Mac OS X 10.7 Lion Password
           OS X Mountain Lion- Reset a login password,
           OS X Mavericks- Solve password problems,
           OS X Lion- Apple ID can be used to reset your user account password.
    For Snow Leopard and earlier with installer DVD
         Mac OS X 10.6- If you forget your administrator password,
         OS X- Changing or resetting an account password (Snow Leopard and earlier).
    For Snow Leopard and earlier without installer DVD
        How to reset your Mac OS X password without an installer disc | MacYourself
        Reset OS X Password Without an OS X CD — Tech News and Analysis
        How To Create A New Administrator Account - Hack Mac

  • Couldn't find root user.  Sleeping and trying again.

    Last week I installed an MSO 2004 update on my G5 iMac running 10.4.11.
    Then I attempted to repair permissions. The repair permissions process
    halted at about half of the progress bar. I let it cook for about two
    hours without success, then tried to force quit Disk Utility. I
    couldn't force quit it, so I very reluctantly turned off the Mac;
    something I've rarely ever done. I waited five minutes and then turned
    the Mac back on. The startup sequence progressed to the point where the
    system displays the gray apple on the gray background, and the circular
    progress indicator or gear begins turning. I let it turn for one hour
    and then powered off the iMac, then powered it back up with the same
    results.
    I powered it off again and then commenced a Safe Boot. Same results as
    before.
    I powered it off again and then started it in Single User Mode. No
    problem. I ran /sbin/fsck -fy. No problem.
    I typed "reboot" and it rebooted. This time I start it in Verbose mode.
    After the preliminary startup code, the system began repeating the same
    message lines:
    dsFindDirNodes returned -14071, count = 0 count = 2147483646
    Couldn't find root user. Sleeping and trying again.
    A Google search produced very few results. I don't have a backup
    because I inherited this iMac from my 75 year old semi retired father
    who wanted a 20-inch Intel iMac instead. I just goof around with the G5
    iMac from time to time, and am considering giving it to my little niece and
    nephews. It worked great for about a month. I have customized my
    user account and the accounts for the little ones, so I really don't
    want to wipe the hard drive and reinstall Tiger again from scratch.
    I booted from the suspect internal hard drive into single user mode.
    I ran /sbin/fsck -fy on the internal hard drive.
    All tests passed.
    I ran fsck_hfs on the internal hard drive.
    It returned a message that stated that I needed
    to add additional information.
    I ran fsck_hfs with several switches enabled, but
    it continued to return this message.
    I performed the procedures in Apple's article 107210
    "Mac OS X, Mac OS X Server: How to Replace the NetInfo
    Database (Restoring from defaults).
    This did not solve the problem.
    I booted this computer from my external Firewire hard drive that I use
    to create nightly backups on my G4 iMac using SuperDuper!.
    I ran Disk Utility Repair Disk Permissions on the
    internal hard drive.
    There were no permissions errors.
    I ran Disk Utility Repair Disk.
    All tests passed.
    I ran the TechTool Pro Suites --> Advanced Tests on
    the internal hard drive.
    All tests passed except for "Startup File" which it
    listed as " <Not Present>".
    The description of this test is:
    "This test checks the Startup file. The parameters
    within this file contain the information used by
    the computer ROM to determine what program will
    boot the computer as well as other system-specific
    aspects."
    I ran the TechTool Pro Performance --> Maintenance
    routine on the internal hard drive.
    It completed the maintenance successfully.
    I ran DiskWarrior on the internal hard drive.
    It reported no directory errors, but I replaced it
    anyway.
    While booted from the external Firewire hard drive, I viewed what
    appears to be the proper compliment of folders on the internal hard
    drive. Of course, I didn't examine and verify every subfolder in the
    hierarchy, however, examining the Applications, Library, System, and
    Users folders two deep seemed to indicate that everything was there.
    I booted this computer from my Tiger installation disk. I selected
    Utilities --> Reset Password... (I think.). It listed only the
    Administrator account (root) on the internal hard drive. It did not
    list the other three accounts that I created on this hard drive, even
    all three respective folders are present in the Users folder. However,
    it did list all four accounts on the still attached external Firewire
    hard drive.
    By every measure, this drive and its directory are sound. I am
    concerned that TechTool Pro reported that the Startup File is Not
    Present. Beyond the meaning that the words suggest, I'm not sure what
    this really means. I checked the Micromat site and found the following:
    The Startup File has been defined but not yet
    implemented by Apple.
    What does the message signify:
    dsFindDirNodes returned -14071, count = 0 count = 2147483646
    Couldn't find root user. Sleeping and trying again.
    Can I effect a simple repair?
    Thank you.

    I think besides a reinstall, only DiskWarrior from Alsoft...
    http://www.alsoft.com/DiskWarrior/
    stands a chance of fixing it.

  • How do i reset admin password. no disc but system automativally logs me in as administrator and can access root user mode

    I recenly got this macbook, MA&00LL/A, max OS X, V:10.4.11, 2GHz IntelCore 2 duo, 2GHz, When I power up it automatically logs me on as administrator but prompts for password when I try to access/change certain features.  I got the macbook from my cousin who has forgot password and has lost disc.  I can access root user mode but as iam unfamiliar with apple I am hesitant to delete anything without making things worse. Is their anyway I can reset this admin password without the disc or simply delete this user and reconfigure system as myself as administrator. step by step instructions would be appreciated at this stage till i familiarize myself more.  Any help would be greatly appreciated.  If it came down to buying a disc, how much roughly do these cost???  thanks again

    If you don't have your install disks you can get the 10.4 gray disks by calling Apple Store Customer Service at 1-800-676-2775 They can send them to you for about $16 per disk plus S & H. Just give them your serial number and they'll know which ones you need.
    To find your serial number go to the Apple in the upper left corner and select About This Mac, then click on More Info, the System Profiler will then come up. The Serial Number (System) is down near the bottom of the Hardware Overview list.
    If you don't have your install disc handy,then follow these steps
    1. Start up in single-user mode (hold Command-S as thecomputer starts up).
    2. Type: mount -uw /
    3. Press Return.
    4. Type this: passwd (user's short name) Replace "(user's shortname)" with the short name of the user account whose password you wish to reset. If you are not sure what the account name is, you can get a list of usernames by typing: ls /Users
    5. Press Return.
    6. Enter a new user password.
    7. Press Return.
    8. Type: reboot
    9. Press Return.

  • To break out of a non-global zone and become root user in the global zone

    Hi folks
    "to break out of a non-global zone and become root user in the global zone through a kernel bug exploit"
    Is this possible and has SUN allready a fix/workaround/patch for that?
    Cheers

    Is it possible there's a bug in the kernel? Sure.
    Someone would need to find and identify such a bug before it could be fixed. I've not heard of the discovery of a bug like this. You could check the bug database at www.opensolaris.org.
    Darren

  • Concern with "File Sharing: On" -- my root user folder (and subfolders) and Macintosh HD is visible

    Hi all,
    When I set up a File Sharing folder in OSX called "Share", I connected from my PC to my Macbook Pro and not only did I see the "Share" folder but I also could see and have total access to my root user folder (all its subfolders too) and my Macintosh HD (hard disk).  Did I miss something?  All I did was check mark "File Sharing" in the Sharing option of System Preferences.  Then I specifically shared only the "Share" folder that I created on the OSX desktop.
    How do I turn of sharing for the root user folder and my Macintosh HD folder?
    Many thanks in advance!

    Yes, I was logging in from my PC laptop to Mac as the Admin.  However, since there is a User called "Everyone" and I, for testing purposes only, turned Read/Write on for "Everyone", I figured I did not have to set up another user (such as "Guest").  I was wrong.  Once I created a new user called "Guest" and specifically checked the Guest account in the SMB option, it worked in the restricted mode I was hoping for.  Thanks!

  • How to hide Root user and other account ?

    Hi, is there any way to keep root user enabled and also to not have the other account.
    It is because if the other account in shown then the other user will get to know that root user is enable. I want to keep the root user enables as well as
    "not" have the other account on my mac book pro.
    I need to know because my small bro is using my mac a lot nowadays and i want to know what he is up to.
    I have mavericks.
    THANKS ANYWAYS

    Go to Shared Components/Templates.
    Find the page template that you are using and click Copy.
    Go into the copy and look for &USER. and #NAVIGATION_BAR# and delete.
    Go to each page that does not need the user and navigation and assign the new template.
    This will get rid off the user details and the navigation bar.
    Gus

Maybe you are looking for

  • Troubleshooting MacBook Pro to TV

    I've tried to connect my MacBook Pro to my (old) Sharp TV using a VGA cable and a VGA to mini display port adapter. Everything is connected properly however it doesn't work! When I connect and disconnect the cable from my laptop the screen briefly fl

  • Using an External Library only

    My start-up disk is full. Can I dump all my itunes media unto a separate hard drive (or ipod for example) and NOT store them on my computer? Then, can I still use itunes for playing my media BY USING THE EXTERNAL AS THE LIBRARY itself and not have to

  • I can't download Adobe Flash Player? It gets to 50%  and fails, saying I must close 'Safari'. Safari is no open, yet it gets stuck repeatedly on this?

    I can't download Adobe Flash Player? It gets to 50%  and fails, saying I must close 'Safari'. Safari is no open, yet it gets stuck repeatedly on this? This is my first Mac and I'm not convinced of them.....nah, I just need a shove in the right direct

  • Significance of item level sold-to?

    Hi Frdz, What is the significance of Item level sold-to party in sales order? Of cource header is copied to items also:-). But still we can delete that and enter new one. Why i am asking is for other partners we have some role to play. eg:Ship to par

  • Computer crashes during sleep

    After installing the latest software update ("J2SE 5.0 Release 4"), once the computer goes to sleep it turns completely off (crashes). This behavior is new. I repaired disk permissions, and have run Disk Warrior 3 times. I'm wondering if anyone else