10.3 MYSQL Root Password problem..

We are running OSX Server 10.3.9 with the built in MYSQL. Somehow the root password for MYSQL that was set is not working and I am locked out with a 1045 error. I need to know how I go about resetting the ROOT password for MYSQL. as I mentioned, I am using the MYSQL that comes with 10.3.9. I have looked online but the tutorials for resetting the passwords do not work on my version...
Thanks...
-- Dave Hauss

I think by default Solaris uses CRYPT_DEFAULT=__unix__ which limits you to 8 characters.
in order to have more than 8 usable characters in your passwd, then you must use "md5"
CRYPT_DEFAULT=md5
this is located in : /etc/security/policy.conf
I think you may want to change the password length in /etc/default/passwd
PASSLENGTH= (default=6) change it to something of your liking.
be sure to do a little more research on the exact steps, but this is what you are loking for. im just going by memory here.

Similar Messages

  • Trouble resetting forgotten MySQL root password

    Hi there,
    As the title suggests, I've forgotten my MySQL root password (and where I wrote it down) and have done endless searches (Google, MySQL site and forum, etc.), tried the resolutions but have not had any luck in resetting the password.
    I tried the instructions on the MySQL site, but when I did that, I got this:
    I've tried removing and restarting instances, as well as uninstalling MySQL, rebooting and then re-installing; still no success.
    I'm running PHP (5.3.0) and MySQL (5.1.37) on Windows Vista.
    I appreciate any help anyone can offer.
    Thanks,
    Heather

    The simplest way that I know to deal with this situation on Windows is to uninstall MySQL. Doing so should leave the databases intact in the data folder, although you might want to copy the contents of the data folder to a different location first.
    Inside the data folder is another folder called mysql. Delete it, and then reinstall MySQL. You should then be able to set up a new root password.

  • Problem resetting mysql root password

    I have install 5.5.20 from mysql from the TAR file. that install was done from an admin user by the name of mysql. Using the mysql user, I have reached a point where I am unable to reset the root password. I have tried both method of resetting the password with no success. Here is what I did. (path omitted for brevity, but used in the commands)
    shell>mysqld_safe --skip-grant-tables
    shell>mysql
    mysql>UPDATE mysql.user SET Password=PASSWORD('newPass')
        -> WHERE User='root';
    mysqlQuery OK, 0 rows affected (0.05 sec)
    Rows matched: 0  Changed: 0  Warnings: 0
    shell> mysqld_safe
    shell> mysql -u root -p
    Enter password:
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
    created an init file that had ths
    --------contents of minit-------
    UPDATE mysql.user SET Password=PASSWORD("newPass") WHERE User='root';
    FLUSH PRIVILEGES;
    ------------eof--------------
    mysqld_safe --init-file=minit
    killed mysqld
    mysqld_safe
    mysql -u root -p
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
    By the way, I closely monitored the .err file and nothing unusual or pacular showed up there.
    Anyone see what I did wrong? Anyone have other suggestions?

    I have install 5.5.20 from mysql from the TAR file. that install was done from an admin user by the name of mysql. Using the mysql user, I have reached a point where I am unable to reset the root password. I have tried both method of resetting the password with no success. Here is what I did. (path omitted for brevity, but used in the commands)
    shell>mysqld_safe --skip-grant-tables
    shell>mysql
    mysql>UPDATE mysql.user SET Password=PASSWORD('newPass')
        -> WHERE User='root';
    mysqlQuery OK, 0 rows affected (0.05 sec)
    Rows matched: 0  Changed: 0  Warnings: 0
    shell> mysqld_safe
    shell> mysql -u root -p
    Enter password:
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
    created an init file that had ths
    --------contents of minit-------
    UPDATE mysql.user SET Password=PASSWORD("newPass") WHERE User='root';
    FLUSH PRIVILEGES;
    ------------eof--------------
    mysqld_safe --init-file=minit
    killed mysqld
    mysqld_safe
    mysql -u root -p
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
    By the way, I closely monitored the .err file and nothing unusual or pacular showed up there.
    Anyone see what I did wrong? Anyone have other suggestions?

  • % in mysql root password prevents jsp page to connect

    my root password to connect to the mysql database is ab12% and when i ran my jsp page which worked in my windows machine with the password asdb34, on a linux machine with mysql password ab12% its showing urlencoder error and the error pointed to the connection string telling unknow escape sequence %.
    can u please help me to recover this problem other than changing the password?
    how shld i rewrite my connection string
    my current string is
    CONNECTIONSTRING=jdbc:mysql://127.0.0.1,:3306/sitedb?user=root&password=ab12%

    Try the Oracle JDBC forum - http://forums.oracle.com/forums/forum.jspa?forumID=99&start=0
    or Sun's JDBC forum:
    http://forum.java.sun.com/index.jspa?tab=java

  • MYSQL Root password

    Hi Guys,
    I'm rather new to all this PHP and MYSQL stuff, so please bear with me. I have downloaded and installed a copy of MYSQL and PHP, and am now trying to change tohe root password, but I keep getting an error message.
    I log in to MYSQL with:
    /usr/local/mysql/bin/mysql
    from there I type:
    UPDATE mysql.user SET Password = PASSWORD('****') WHERE User = 'root';
    but I keep getting an error message of:
    ERROR 1142 (42000): UPDATE command denied to user ''@'localhost' for table 'user'
    what have I got wrong?

    I've tried to follow the above advice.
    I've completely deleted my MySQl on OS X Server 10.4.7 and reinstalled using the lastest package "mysql-standard-5.0.24a-osx10.4-powerpc.dmg".
    I just cannot get mysql to work properly, to set my root password.
    See my first attempts with Terminal below (No.1)...
    MySQL Adminsitaror and CoCoa SQL connecs with no username or password.
    I've also tried to follow marcs advice at http://www.entropy.ch/software/macosx/mysql/ but to no avail.
    See my second attemps with Terminal below (No.2)...
    If I can crack how to reinstall and setup MySQL on OS X Server 10.4.7 then I'll have a good Disaster Recovery Plan, I hope you can help, thanks.
    No.1
    Last login: Fri Sep 22 17:26:02 on ttyp1
    Welcome to Darwin!
    Server:~ admin$
    Server:~ admin$ sudo /usr/local/mysql/bin/mysqld_safe --skip-grant-tables -u root &
    [1] 1014
    Server:~ admin$ A mysqld process already exists
    [1]+ Exit 1 sudo /usr/local/mysql/bin/mysqld_safe --skip-grant-tables -u root
    Server:~ admin$ sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop
    Stopping MySQL database server
    Server:~ admin$ sudo /usr/local/mysql/bin/mysqld_safe --skip-grant-tables -u root &
    [1] 1066
    Server:~ admin$ Starting mysqld daemon with databases from /usr/local/mysql/data
    Server:~ admin$ sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
    Starting MySQL database server
    Server:~ admin$ /usr/local/mysql/bin/mysql -u root
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (13)
    Server:~ admin$ /usr/local/mysql-standard-5.0.24a-osx10.4-powerpc/bin/mysql -u root
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (13)
    Server:~ admin$
    No.2
    Last login: Fri Sep 22 17:26:12 on ttyp1
    Welcome to Darwin!
    Server:~ admin$ sudo find /usr/local/mysql/data -type f -exec rm {} ';'
    Password:
    Server:~ admin$
    Server:~ admin$ sudo hostname 127.0.0.1
    Server:~ admin$ cd /usr/local/mysql
    Server:/usr/local/mysql admin$ sudo ./scripts/mysqlinstalldb
    Installing all prepared tables
    060922 17:35:30 [Warning] Setting lowercase_tablenames=2 because file system for /usr/local/mysql-standard-5.0.24a-osx10.4-powerpc/data/ is case insensitive
    060922 17:35:30 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=127-bin' to avoid this problem.
    Fill help tables
    060922 17:35:31 [Warning] Setting lowercase_tablenames=2 because file system for /usr/local/mysql-standard-5.0.24a-osx10.4-powerpc/data/ is case insensitive
    060922 17:35:31 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=127-bin' to avoid this problem.
    To start mysqld at boot time you have to copy support-files/mysql.server
    to the right place for your system
    PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
    To do so, start the server, then issue the following commands:
    ./bin/mysqladmin -u root password 'new-password'
    ./bin/mysqladmin -u root -h 127.0.0.1 password 'new-password'
    See the manual for more instructions.
    You can start the MySQL daemon with:
    cd . ; ./bin/mysqld_safe &
    You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
    cd sql-bench ; perl run-all-tests
    Please report any problems with the ./bin/mysqlbug script!
    The latest information about MySQL is available on the web at
    http://www.mysql.com
    Support MySQL by buying support/licenses at http://shop.mysql.com
    Server:/usr/local/mysql admin$ sudo chown -R mysql data/
    Server:/usr/local/mysql admin$ /usr/local/mysql/bin/mysqladmin -u root password operate
    /usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed
    error: 'Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (13)'
    Check that mysqld is running and that the socket: '/var/mysql/mysql.sock' exists!
    Server:/usr/local/mysql admin$

  • Root Password Problem

    Hi ,
    I am new to solaris . I installed the solaris 10 (beta 7) on P-111 machine. I start installation with Intractive installation but after 1 cd complition , OS reboots but no GUI. I tried 2-3 times.
    After that i choose the option Jump start and installation completes. During the installation root password was not asked.
    After installation ,when i login it just ask user not for password.
    I can login in CDE session but not able in Java Desktop Environment.
    Now I want to add user with the help of "Solaris management console" utility. But it ask for Root password.
    Now please guide me how i can choose the Root password and how i can login in the Java desktop environment.
    Regards
    Gorayen

    You can set your password with the passwd command

  • Root password problems

    when using sudo command i can't remember my password how do i reset it ? what i would like to do is install apache on my desktop mac to enable me to use wordpress offline.

    no this did not help.
    I am the only user on my desktop so at loging i hit enter. but when in terminal using the sudo command it asks for root password which i cant remember.

  • Root password problem in Solaris 10

    Hi All,
    Have anyone noticed this problem before?
    I've set the password on Solaris for the root user as "rootroot123". However, I'm able to login with any password that starts with rootroot (i.e. rootroot*)...
    My solaris version is:
    SunOS mynode01 5.10 Generic_138888-03 sun4u sparc SUNW,Netra-240
    Is there a bug report in Solaris regarding this or any way to solve it?
    Thanx,
    Mahmood

    I think by default Solaris uses CRYPT_DEFAULT=__unix__ which limits you to 8 characters.
    in order to have more than 8 usable characters in your passwd, then you must use "md5"
    CRYPT_DEFAULT=md5
    this is located in : /etc/security/policy.conf
    I think you may want to change the password length in /etc/default/passwd
    PASSLENGTH= (default=6) change it to something of your liking.
    be sure to do a little more research on the exact steps, but this is what you are loking for. im just going by memory here.

  • Login as Root password problem (the changed password isn't working!)

    I have enabled root user. I've changed my password for root user a couple of time and I am still not cable to login as root!! (username: root).
    Any thoughts and help? thanks a lot! Alon.

    Hello Stephen,
    Change of password is not done via configtool. Configtool secure store just stores the current password which is taken by SDM during the deployment.
    To change the password of the administrator user, you will need to enable SAP*. Please follow note Note 669848.
    1. open the configtool: C:\usr\sap\<InstenceID>\JC<xx>\j2ee\configtool --> configtool.bat
    ex: C:\usr\sap\J9E\JC09\j2ee\configtool ---> configtool
    2. Activate the "super admin" and enter password(this is your choice) in configtool properties:
    In Config tool: cluster-data>Global Server configuration>services--> com.sap.security.core.ume.service
    find below ume properties and change values as i mentioned
    ume.superadmin.activated=TRUE
    ume.superadmin.password= < enter password>
    3. Save the changes in configtool. click on Save button.
    4. Stop the j2ee engine.
    5. Start the j2ee engine.
    6. Now you login to UME with username "SAP*" and password "what you entered in configtool"
    7. After logging into UME Search for user "administrator" then unlock this user; or if you want to change password you can change it.
    8. Goto config tool follow step 1:
    9. Follow step2: and change ume property values as below:
    ume.superadmin.activated=FALSE
    ume.superadmin.password= (note: seta as default or blank)
    10. Save the change setting in configtool.
    11. Restart the j2ee engine ( Stop and Start).
    12. Now login to user as "Administrator"; you will succussfully loging into ume;
    Hope this helps.
    Regards,
    Snehal

  • Root password problem by passwd root

    The password whas changed by typing :
    %>passwd root
    After this the system worked fine 3 days...
    On first reboot i can NOT login like root...
    Please help me...

    Can you boot from the floopy disk,then mount the system,and change the file passwd...

  • Sun 7120 - problems with resetting root password?

    We have just taken delivery of a Sun 7120 system, did the initial config today no problems, then came to log in to tweak it and it refused my root password. Logged on the serial console with the same password fine, logged out and now it won't let me back in, just says "login incorrect". Have reset the CLR PW jumper on the mainboard, and rebooted and it then comes up in the preboot system, but reports errors about the ILOM. After powering down and removing the jumper, the root password is still there!
    Output on bootup attached below, can anyone help?
    Cheers
    Primary Bootstrap.
    U-Boot 1.1.4
    Custom AST2100 U-Boot 3.0 (Aug 17 2010 - 01:30:05) r58107
    DRAM: 119 MB
    Flash bank 0 at 10000000 has 32MB in 256 sectors (chipSize 1<<25, ratio 1, bufSz
    1024).
    Flash: 32 MB
    VUART1 at port 0x03f8, SerIRQ[4] disabled
    VUART2 at port 0x02f8, SerIRQ[3] disabled
    Protecting U-Boot flash sectors; monitor_base=10040000.
    board_findGpioNum(): ERROR, 'BIOS_TOP_BLOCK_LOCK' does not match any pin.
    board_findGpioNum(): ERROR, 'SP_PECI_ENABLE' does not match any pin.
    H/W: Lynxplus Service Processor; SOC: AST2100 Rev. 02 ('A3')
    PWC_SP_Broken_OD = 0; ARM restart caused by: power-on
    The host is OFF(S5) (hostWantsPwr=0, powerGood=0,
    allowPwrOn=0|0, outOfReset=0, fatalError=0).
    Reset straps=0x8c819180, def. H-PLL=264 MHz, CPU/AHB=2:1, boot CS0# normal spe
    ed
    PCI w/VGA noVBIOS; NOR 38ns/byte; DRAM clock is M-PLL: 264 MHz (DDR2-528)
    DRAM: 128MB data - 8MB VGA, 32-bit noECC, 2 BA 10 CA, CL=4 BL=4 ap=1, 61440 us
    refr
    Board Revision - 8d
    Date: 2011-01-19 (Wednesday) Time: 7:04:21
    Reading FRUID...Valid CRC.
    ethaddr=00:21:28:3D:BD:9A
    eth1addr=00:21:28:3D:BD:9B
    Net: MAC1 PHY not ready faradaynic#0, faradaynic#1
    Enter Diagnostics Mode ['q'uick/'n'ormal(default)/e'x'tended(manufacturing mode)
    ] ..... 0
    Diagnostics Mode - NORMAL
    <DIAGS> Memory Data Bus Test ... PASSED
    <DIAGS> Memory Address Bus Test ... PASSED
    I2C Probe Test - Motherboard
    Bus Device Address Result
    === ============================ ======= ======
    2 Sys FRUID (U3003) 0xA0 PASSED
    2 Power CPLD (U3301) 0x4E PASSED
    2 CPU0 Fault LED's (U3001) 0x40 PASSED
    2 CPU1 Fault LED's (U3002) 0x42 PASSED
    2 PCA9555 (Misc) (U3005) 0x44 PASSED
    2 DIMM IMAX (U3102) 0x12 PASSED
    6 Bank Panel Led's (U2701) 0xC6 PASSED
    6 DS1338(RTC) ( U803) 0xD0 PASSED
    6 Temp Sensor1(LM75) (U3011) 0x90 PASSED
    6 Temp Sensor2(LM75) (U3012) 0x92 PASSED
    6 Temp Sensor3(LM75) (U3010) 0x94 PASSED
    I2C Probe Test - Chassis(2U HYDE24)
    PDB Board
    Bus Device Address Result
    === ============================ ======= ======
    1 PCA9548 Mux (U0202) 0xE0 PASSED
    1 PDB FRUID (U0203) 0xAA PASSED
    1 MAX7313 (U0201) 0x40 PASSED
    1 MAX7315 (U1001) 0x46 PASSED
    Power Supply 0
    BUS Port DEVICE Address Result
    === ==== ==================== ======= ======
    1 0 PS 0 FRUID ( - ) 0xAC PASSED
    1 0 PS 0 CTRL ( - ) 0x7C PASSED
    Power Supply 1
    BUS Port DEVICE Address Result
    === ==== ==================== ======= ======
    1 1 PS 1 FRUID ( - ) 0xAC PASSED
    1 1 PS 1 CTRL ( - ) 0x7C PASSED
    Unified Fan Module
    BUS Port DEVICE Address Result
    === ==== ==================== ======= ======
    1 2 FT 0 FRUID (U0203) 0xAC PASSED
    1 2 FT 0 MAX7313 (U0201) 0x42 PASSED
    1 2 FT 0 ADT7462 (U0202) 0xB8 PASSED
    1 3 FT 1 MAX7313 (U0501) 0x42 PASSED
    1 3 FT 1 ADT7462 (U0502) 0xB8 PASSED
    24 Disk Backplane
    BUS Port DEVICE Address Result
    === ==== ==================== ======= ======
    1 4 BP MAX7313 ( U8) 0x44 PASSED
    1 4 BP FRUID ( U6) 0xAC PASSED
    LSI Daughter Card
    BUS Port DEVICE Address Result
    === ==== ==================== ======= ======
    1 4 EXP FRUID ( U07) 0xA0 PASSED
    1 4 EXP Tmp Sens ( U04) 0x98 PASSED
    1 4 EXP PCA9538 ( U10) 0xE6 PASSED
    1 4 EXP EMP570 ( U05) 0x50 PASSED
    Connector Board
    BUS Port DEVICE Address Result
    === ==== ==================== ======= ======
    1 4 CONN FRUID ( U05) 0xA2 PASSED
    <DIAGS> PHY #0 R/W Test ... PASSED
    <DIAGS> PHY #0 Link Status ... FAILED
    MAC1 PHY not ready <DIAGS> ETHERNET PHY #0, Internal Loopback Test ... RX error
    status = 0xB00905C0
    FAILED
    No data received
    <DIAGS> USB 1.1 Test ... PASSED
    <DIAGS>Access to BIOS Flash ... PASSED
    <DIAGS> Testing PowerCPLD version ... PASSED
    checking for abnormal reboots: 0:0.
    abnormal reboot found -- too long, ignore
    Booting linux in 3 seconds...
    Un-Protect Flash Bank # 1
    flctrl: Recovery U-Boot (r58107) at 0x10040000 is valid (min. r51654).
    flctrl: Current U-Boot is not the main one.
    bootpkg: Not safe to boot ILOM (stat=1). Check Preboot "vers" command,
    then reload ILOM ("net flash") as needed.
    ILOM Pre-boot Menu
    Type "h" and [Enter] for a list of commands, or "?" [Enter] for
    command-line key bindings. Type "h cmd" for summary of 'cmd' command.
    Idle time-out is disabled. Set 'bootretry' to enable it.
    This is Recovery U-Boot. Use "vers all" to check flash images.
    Preboot> vers all
    Main ILOM image at 0x100a0000:
    Service Processor Firmware
    Version = 3.0.9.27, for SP type 52
    Date ='Tue Aug 17 01:54:07 EDT 2010', Build ='r58107'
    Name ='sysbios'
    uboot @0a0000 OK, kernel @102000 OK, root @20d684 OK,
    sysbios @c9b6c4 OK, pwrseq @d51aa2 OK, pbsw @d6096c OK
    coredump @1500000 8192 KiB, persist @1d00000 2048 KiB, params @1f00000 1024
    KiB
    Recovery firmware and data:
    Normal U-Boot at 0x100a0000:
    Date ='Aug 17 2010', Build ='r58107'
    uboot @0a0000 OK
    Recovery U-Boot at 0x10040000:
    Date ='Aug 17 2010', Build ='r58107'
    uboot @040000 OK
    Primary Bootstrap build: r52205
    Permanent environment: not found

    I don't think it is. The jumper you saw is likely the ILOM jumper. The ILOM is different than the BUI(OS) password so they can be reset/changed independently.

  • SQL Root Password

    I am having a problem...
    The root password for the SQL service is correct but if I connect using SQL manager I get this error...
    I can connect to the MySQL instance but then get this error....
    Could not retrieve user list:
    Access denied for user 'root'@'127.0.0.1' to database 'mysql' (error 1044)
    What is going on ??
    all databases working but cannot seem to access the list of databases any longer...

    It is possible that your databases are corrupt; there is certainly evidence here that could indicate that.
    There's seldom an easy or consistent or single path toward resolution of a database problem; there's no single trigger for these.
    I've performed MySQL recoveries for various sites, and the triggers and the errors and the commands needed have tended to vary. The MySQL manuals and [Google|http://www.google.com/search?hl=en&q=Accessdenied+for+user+%27root%27%40%27127.0.0.1%27+to+database+%27mysql%27+%28error1044%29] can be good friends here, as can any of the available archives of these databases that might be available locally.
    But there's no single easy answer I'm aware of and no single trigger. If there was, the MySQL folks probably would have fixed the underlying bug by now. From the MySQL site, here are some of the [Causes of Access-Denied Errors|http://dev.mysql.com/doc/refman/5.1/en/access-denied.html].
    And it is often feasible to break into each database [using the provided directions|http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html], and have a look around.

  • How to Delete and Reset a Lost Root Password on a System With a Mirrored ??

    hi All,
    we are experiencing problem,lost root password on Solaris 10 Sparc T5120, with mirror root,
    and we found the solution from Metalink.oracle.com, has anyone have try this??
    here list capture the file system :
    Filesystem size used avail capacity Mounted on
    */dev/md/dsk/d10 2.0G 349M 1.6G 18% /*
    */dev/md/dsk/d40 9.8G 563M 9.2G 6% /usr*
    */dev/md/dsk/d30 9.8G 1.4G 8.4G 15% /var*
    */dev/md/dsk/d50 7.9G 310M 7.5G 4% /opt*
    */dev/md/dsk/d600 3.8G 4.3M 3.8G 1% /home*
    */dev/md/dsk/d602 471M 20M 404M 5% /app/controlm*
    */dev/md/dsk/d601 471M 251M 173M 60% /app/ctsa*
    */dev/md/dsk/d604 4.9G 1.1G 3.8G 23% /app/oramon*
    */dev/md/dsk/d603 20G 11G 8.2G 58% /app/oracle*
    */dev/md/dsk/d606 39G 10.0G 29G 26% /proj/iprdb01/orafra/iprod01p*
    here the step :
    Solstice DiskSuite[TM] Software: How to Delete and Reset a Lost Root Password on a System With a Mirrored Root Disk [ID 1010755.1]
    Solution
    Steps to Follow
    How to delete and reset a lost root password on a system with a mirrored root disk.
    1) Insert the Solaris[TM] Operating System CD-ROM into the CD-ROM drive.
    2) Once the CD-ROM is in the drive, perform a stop-a. This brings the system down to the "ok" prompt.
    3) From the "ok" prompt, perform a single-user boot from the Solaris OS CD-ROM.
    ok boot cdrom -s4) At the "#" prompt, determine which disk is the system's boot disk (containing the root file system). There are several Oracle architectures and various configurations of systems when it concerns a boot disk. As a general rule, most boot disks are attached to controller 0 (c0). Usually, their SCSI target is
    either 3 (t3) or 0 (t0). However, Oracle machines are very flexible, and the boot disk could be at a different location. If you are not sure which disk is your boot disk, perform the following steps to determine the location of the boot device:
    a) # eeprom boot-device
    The output might appear to be simple, such as "disk" or "disk1" or more complicated, such as a pathname "/iommu/sbus/espdma@4,8400000/...../sd@3,0:a".
    b) Make note of the boot-device. If the boot-device is a pathname, it is beyond the scope of this information to provide the location of the customized boot disk. However, for most configurations,
    finding the customized boot disk is an easy task. The "Format" command shows all available disks:
    #format
    Searching for disks...done
    AVAILABLE DISK SELECTIONS:
    (enter its number): c) Enter d to exit format.
    Now, you will have an idea what disks are on the system. Therefore, if the boot-device is "disk" and format shows "c0t0d0" (on some systems "c0t3d0") then that is the boot device. If boot-device
    shows "disk1" and format shows "c0t1d0," then that is the boot device. If format shows multiple disks, then based on what the "eeprom boot-device" command shows, the system's boot disk would be:
    boot-device format
    disk c0t0d0 or c0t3d0 (machine dependent)
    disk1 c1t0d0
    disk2 c0t2d0
    disk3 c0t3d0 or c0t0d0 (machine dependent)
    and so on ....
    5) Because the system was not brought down gracefully (no root password means having to use the Stop-a keystroke to "crash" the system), you need to run "fsck" to clean the root partition (slice). The fsckalso confirms that you selected the proper slice.
    # fsck /dev/rdsk/c1t0d0s0
    where the X and Y are determined by the previous procedure. It is also possible to have a root partition which is not on slice 0 (s0), but, again, that is not a standard configuration.
    The output of "fsck" looks like this:
    ** /dev/rdsk/c1t0d0s0
    ** last mounted on /
    ** Phase 1 .....
    The second line in the output of "fsck" ("** Last mounted on /") confirms that this is the correct root filesystem partition. Answer "y" to any questions fsck asks. There shouldn't be too many items
    needing repair. If there are, there is a possibility of a corrupted root filesystem. After fsck is finished, mount the root partition:
    # mount /dev/dsk/c1t0d0s0 /a
    Again, X and Y are the same as for the fsck command.
    For example:
    # mount /dev/dsk/c1t0d0s0 /a
    6) From the root prompt, set the proper TERM type command (such as vt100, dtterm, sun, and so on)
    by entering this command:
    # TERM=sun; export TERM
    7) Use the VI text editor to edit the /etc/shadow file:
    # vi /a/etc/shadow
    8) The first line of the /etc/shadow file is the one you want to modify.
    It looks like this:
    root:c3.yAVmYodWsc:6445::::::
    9) Delete every character between the first and second colons in the first line of the file. When you finish deleting the characters, the line should look like this:
    root::6445::::::
    10) Press the Escape key, then enter the following to save the file and exit vi:
    :wq!
    11) Use the VI text editor to edit the /etc/system file andremove the "rootdev" line shown below:
    # vi /a/etc/system
    *rootdev:/pseudo/md@0:0,0,blk
    Don't comment out the "rootdev" line. Actually remove it.
    12) In the /a/etc/vfstab file, replace the lines for the system filesystem meta-devices with their underlying partitions. For example, change lines from
    /dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -
    to
    /dev/dsk/c1t0d0s0 /dev/rdsk/c1t0d0s0 / ufs 1 no -
    ONLY change the lines for root (/) and the filesystems that were affected by the actions you took in step 1 of this procedure. All other metadevices may stay as is in this file.
    13) Unmount root, check the root filesystem, and then stop the system:
    # cd /
    # umount /a
    # fsck /dev/rdsk/c1t0d0s0
    # stop-a
    14) Boot to single-user mode:
    ok boot -swTHIS STEP IS VERY IMPORTANT; YOU MUST BOOT TO SINGLE-USER MODE TO AVOID FILESYSTEM CORRUPTION.
    If the system does not boot to single user mode, you might have made a mistake in the previous steps.
    15) Because the root password was cleared in an earlier step, press Return when prompted for the the root password. Once you are in single-user mode, you must clear the metamirrors and all the sub-mirrors for the root filesystem. For example, if root (/) is d0, run the following command:
    # metaclear -f -r d0
    Running the metaclear command not only clears the metamirror but also clears the submirrors that are part of this mirror.
    16) When the metamirror is cleared, continue the boot up to multiuser mode by either pressing CTRL-D or by entering the following:
    # exit
    Now everything should be as it was, except that the system partition is on the underlying partition and isn't mirrored. You will simply need to re-create the metadevices for the root mirror as you had originally.
    many thanks

    Hi,
    Halt your machine.
    Boot with fail-safe mode.
    format and list out the disks. (You can get the root & mirror disk (c#t#d#) details from /etc/lvm/md.tab of your root or mirror disk. Earlier explorer output may help)
    Mount the root disk and remove the password entry in /etc/shadow
    umount it.
    Mount the mirror disk and remove the password entry in /etc/shadow
    umount it.
    reboot the server.
    Hope this helps!

  • Reset lost root password and now have read only filesystem

    Hello,
    I have recently had to reset a locked root password by booting from cdrom, mounting the first boot disk, editing the shadow file to remove root's password and rebooting the system.
    The system has booted OK but, I now have a read only filesystem - everything in / cannot be edited, passwd doesnt work etc.
    df -k shows the root (/) filesystem has been mounted on the physical disk I edited:
    Filesystem kbytes used avail capacity Mounted on
    /pci@83,4000/FJSV,ulsa@2,1/disk@0,0:a 10085836 185862 9799116 2% /
    but in the vfstab it still references the disksuite metadevice:
    #device device mount FS fsck mount mount
    #to mount to fsck point type pass at boot options
    /dev/md/dsk/d30 /dev/md/rdsk/d30 / ufs 1 no -
    So, can I simply boot from CDROM again, amend the vfstab to be /dev/dsk/c0t0d0s0 (instead of /dev/md/dsk/d03) and reboot?
    Any help with this is appreciated!
    Thanks,
    Emma

    df -k should have shown root mounted on md0
    e.g. on my machine
    # df -k
    Filesystem kbytes used avail capacity Mounted on
    /dev/md/dsk/d0 8260691 4366317 3811768 54% /
    what does /etc/system show for rootdev?
    # grep rootdev /etc/system
    * rootdev: Set the root device. This should be a fully
    * rootdev:/sbus@1,f8000000/esp@0,800000/sd@3,0:a
    rootdev:/pseudo/md@0:0,0,blk
    Remember if this is a mirrored drive, when you boot from CD you may need to mount both sides of the mirror and make changes on both sides- otherwise the replication may not goes as expected.
    Actually, I have run into problems with the modifying one side of a mirror this way. In the past Sun tech support would recommend that I break the mirror and then rebuild it once the system is up and running. So in your case you may want to boot from CD, mount the 1st disk slice, edit /etc/vfstab AND /etc/system, boot into the OS and use the various meta commands to delete and rebuild the mirror- or at least maybe to drop and reattach the 2nd 1/2 of the mirror.

  • Root password fails on auth to Solaris Management Console Server

    I've setup Solaris 10 x86 on a VA linux 1220 server, all is good so far except when I try to create additional users. I am logged in as root, and the root password logs in to the CDE, but fails on authentication to Solaris Management Console Server when I try to use any of the management apps like computers and networks or Users. So I'm stalled at the point where I should be configuring the system. I have been very careful about typing in the password exactly as I use it in the login screen, but it never works in the System Management tools for This Computer. The password I'm using is 26 characters long, is it too long? Or is there a step I'm missing?
    Thanks,
    Brian

    One of my famous guesses, but unless you changed the default password algorithm the maximum length of your password is 8 characters, when logging in on the console or desktop, anything typed after those eight characters will be ignored (unless this behaviour changed very recently).
    Its possibly that SMC, and its server component WBEM does not ignore the extra characters, which could cause this behavior.
    What happens if you try and login to SMC with the root user and only the first eight characters of your password?
    Btw, if this was the problem i think there is a way to change the default crypto algorithm to something that supports more characters.
    .7/M.

Maybe you are looking for