root im terminal ?

  • sudo -s

    [blablablablabla]

    [font=verdana,sans-serif]"An über-programmer is likely to be someone who stares quietly into space and then says 'Hmm. I think I've seen something like this before.'" -- John D. Cock[/font]

    opentu.net - freier, unzensierter Informationsaustausch via IRC-Channel!
    Hilfe und Support in Studienangelegenheiten, gemütliches Beisammensein, von und mit Leuten aus dem Informatik-Forum!

  • Zitat von chrisu

    Hi!

    Weiss jemand wie man sich als root im terminal einloggen kann ?

    Naja mit su gehts ja mal nicht ...
    Zumindest nicht in der Standardconfig ...


    sicher gehts auch mit su

    du musst erst mal root ein passwort geben.
    sudo passwd root

    dann kannst ein su machen

    lg
    segfault

    even newton had his best ideas on an apple...

  • Ja, birgt allerdings ein höheres Sicherheitsrisiko, und bringt rein gar nichts...

    [font=verdana,sans-serif]"An über-programmer is likely to be someone who stares quietly into space and then says 'Hmm. I think I've seen something like this before.'" -- John D. Cock[/font]

    opentu.net - freier, unzensierter Informationsaustausch via IRC-Channel!
    Hilfe und Support in Studienangelegenheiten, gemütliches Beisammensein, von und mit Leuten aus dem Informatik-Forum!

  • Zitat von hal

    Ja, birgt allerdings ein höheres Sicherheitsrisiko, und bringt rein gar nichts...

    naja... fast nix... dafuer funkt halt dann das su :)

    even newton had his best ideas on an apple...

  • su ist aber funktional sudo -s ziemlich ähnlich.

    Die einzige wirkliche Feature-Vermehrung ist, dass man sich auch grafisch als root einloggen kann, aber das ist sowieso sehr problematisch, da hab ich schon öfters vernichtete Systeme erlebt (zB wenn jemand auf die glorreiche Idee kommt, die Permissions von /System rekursiv zu ändern).

    [font=verdana,sans-serif]"An über-programmer is likely to be someone who stares quietly into space and then says 'Hmm. I think I've seen something like this before.'" -- John D. Cock[/font]

    opentu.net - freier, unzensierter Informationsaustausch via IRC-Channel!
    Hilfe und Support in Studienangelegenheiten, gemütliches Beisammensein, von und mit Leuten aus dem Informatik-Forum!

  • TOPIC

    Follow steps in this article to enable the root user in Mac OS X, which is disabled by default.


    DISCUSSION


    This article describes the root user for Mac OS X and Mac OS X Server versions 10.0 and later.

    Important:
    1. If you are not familiar with the meaning of "root user," you should read this entire article to get important precautionary information before using the root user. You must have an Admin user name and password to complete the steps below.

    2. If you are using Mac OS X Server, root is already enabled by default. Advice contained in this article to disable root access when used infrequently does not apply to Mac OS X Server. It should remain enabled. For more information on related behavior, see technical document 106361: "Mac OS X, Mac OS X Server: Password Does Not Work as Expected After a Change"

    Sections of this document:

    I. Steps to enable the root user
    II. How to log in as root
    III. How to disable the root user
    IV. About the root user
    V. What is the root directory?


    I. Steps to enable the root user

    1. Click the Finder icon in the Dock.
    2. Choose Go ? Applications (Applications from the Go menu).
    3. Open the Utilities folder.
    4. Open the NetInfo Manager utility.
    5. Click the lock in the NetInfo Manager window.
    6. Enter the name and password of an Admin user, then click OK.
    7. For Mac OS X 10.2: Choose Security ? Enable Root User.
    For Mac OS X 10.0 and 10.1: Choose Domain ? Security ? Enable Root User.
    8. If you have not previously set a root password, an alert box may appear that says "NetInfo Error," indicating that the password is blank. Click OK.
    9. Enter the root password you wish to use and click Set.
    10. Enter the password again for verification and click Verify.
    11. The root user is now enabled.
    12. Click the lock again to prevent changes.


    II. How to log in as root

    For Mac OS X 10.2
    1. If you are logged in to Mac OS X, choose ? Log Out.
    2. If you are logging in from a list of user names with pictures, click Other.
    3. In the Name field, type: root
    4. In the Password field, type the password you defined in the steps above.

    For Mac OS X 10.0 to 10.1.5

    After enabling the root user, you must log out from Mac OS X and log back in as the root user. Logging in to Mac OS X from a list of user names is the default behavior for later versions of Mac OS X. Logging in by typing your user name in a text entry field is the default behavior in earlier versions of Mac OS X. You can choose either method in the Login pane of the System Preferences application. The root user does not appear in the list, so you need the text entry option. If necessary, follow these steps to change the login method to text entry:
    1. Choose ? System Preferences.
    2. Choose View ? Login.
    3. Click the Login Window tab.
    4. Select the radio button for "Name and password entry fields."

    Follow these steps to log in as root:
    1. If you are logged in to Mac OS X, choose ? Log Out.
    2. In the Name field, type: root
    3. In the Password field, type the password you defined in the steps above.


    III. How to disable the root user
    1. Open NetInfo Manager, located in the Utilities folder.
    2. Click the lock.
    3. Enter the name and password of an Admin user, then click OK.
    4. For Mac OS X 10.2: Choose Security ? Disable Root User.
    For Mac OS X 10.0 and 10.1: Choose Domain ? Security ? Disable Root User.


    IV. About the root user

    The user named "root" is a special user in UNIX-style operating systems that has read and write privileges to all areas of the file system.

    The root user should only be used for specific administration or monitoring tasks. After completing a task as the root user, you should log out of Mac OS X and log back in using a normal or Admin user account. You should disable root access if you do not use it often.

    Warning
    1. Only the owner of a computer or its designated administrator(s) should have Admin user status or the root password.
    2. Any Admin user can become the root user or reset the root password.
    3. A root password should be difficult to guess, containing both numbers and letters within the first eight characters.
    4. A root user has the ability to read other users' files.
    5. The root user has the ability to relocate or remove required system files and to introduce new files in locations that are protected from other users.


    V. What is the root directory?

    When reading technical documents, it helps to know that the term root is used in two distinct ways: The "root user" and the "root directory." The root directory is the highest directory level of a disk. The files and folders you see when you open (double-click) your hard disk icon are the contents of that disk's root directory.

    A user's short name is also the name of his Home directory. The root user shares its name with its own Home directory, which is the first (or highest) level of the disk directory.

    The Finder and the Terminal show different contents for the root directory. Some items in the root directory are made invisible when viewed in the Finder. This reduces visual clutter and enhances simplicity. Users familiar with UNIX command line may use the Terminal utility to view everything in a directory.

    Notes
    1. A directory is represented graphically as a folder. You may know your Home directory as your "Home folder." The terms "folder" and "directory" are generally interchangeable.
    2. The root user does not appear in the Users pane of System Preferences.


  • Naja wenn man mit der Konsole arbeiten will und
    auch sein BSD etwas verändern will bzw. Konfigurationen
    per Konsole durchführen will, schein mir es schon sinnvoll zu sein,
    sich als root einzuloggen ...

    ... kann natürlich auch schief gehen :devil::shinner:


Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!