[SOLVED] reseting su password, single user mode not working

Hi everyone,
So I did something stupid (not on purpose obviously) and tried to move the contents of / into my home directory (using mv).
Ok not a really big deal, loaded up a live cd of mint which happened to be around and moved the everything back, rebooted and everything seemed fine.
Then tried to use sudo, and got the error "sudo: effective uid is not 0, is sudo installed setuid root?"
looks like a permissions/ownership issue of /usr/, does this sound right to people?
Anyway then tried su to change the ownership back to root. I am guessing the mint live cd took ownership of it for some reason.
But my password didn't work (neither did leaving it blank), so rebooted into single user mode and reset it and rebooted. However the authentication still fails.
I tried passwd, passwd root and passwd username for good measure but it hasn't resolved the issue. (the disk was mounted as rw)
Have i missed something obvious? What is the next thing to try?
Thanks for any help
Last edited by dynamite (2013-09-25 05:44:01)

Unfortunately none of these worked.
Further, when using chroot sudo works, so I tried to reinstall it using pacman and got the following error:
(1/1) checking keys in keyring [######################] 100%
error: GPGME error: Invalid crypto engine
(1/1) checking package integrity [######################] 100%
error: GPGME error: Invalid crypto engine
error: sudo: missing required signature
:: File /var/cache/pacman/pkg/sudo-1.8.7-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
when I tried again I got:
error: could not open file: /etc/mtab: No such file or directory
error: could not determine filesystem mount points
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

Similar Messages

  • HT1492 Single user mode not working.

    Whenever I hit command-s to go into single user mode it doesn't work. I used to do it all the time to help my grandma who doesn't let me know her password, but always forgets it reset her computer. Please help!

    Thank you! The thread you posted had my problem exactly, and the solution. It was the Macally keyboard, so I uninstalled the driver (and single user mode worked), and then I installed an older driver, so now my keyboard works AND single user mode works. If all of my computer problems could be so easy...

  • Hi, i forgot my macbook pro(snow leopard) password and i tried to reset it through single user mode, but whenever i type, everything comes out in CAPs instead of lower case. Each time i press the minus(-), it always comes out as an underscore(_).Pls help.

    Hi, i forgot my macbook pro(snow leopard) password and i tried to reset it through single user mode, but whenever i type, everything comes out in CAPs instead of lower case. Each time i press the minus(-), it always comes out as an underscore(_).Pls help.

    Well, you can try easing the shift key up with something thin but flexible (credit card sort of thing) but if the contacts below are stuck you may need to get it seen to by an authorised repairer.
    If you can borrow a keyboard (a PC one will probably work as long as the password is alpha-numeric with no special characters) you can at least get in to backup your HD before going for repair.

  • I am trying to log into my apple account and it is telling me my account is disabled.  How can i get it enabled again?  I have tried resetting my password and that did not work.

    I have tried to log into my apple account so I can download my songs onto my iPhone.  It keeps telling me my apple id is disabled.  I've tried resetting my password but that did not work.  How can I fix this?

    After resetting your password you might then need to log out of your account on your device by phone on your id in Settings > Store (Settings > iTunes & App Stores if it's on iOS 6) and then log back in so as to 'refresh' the account on it
    If that doesn't fix it then you might need to contact iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • Reset Permissions from Single-User Mode

    I believe I have accidently removed the permissions from my iMac. I can access single-user mode and need desperately for someone to walk me through how to reset the permissions (I get a blue screen when I try to boot). Please help.

    JMT001 wrote:
    I believe I have accidently removed the permissions from my iMac.
    what do you mean? what EXACTLY did you do? did you change permissions on the top level of the hard drive to no access?
    if so see this link
    http://discussions.apple.com/message.jspa?messageID=2087835
    if it's something else explain what you've done.

  • I had to reset my password because it was not working

    help help help
    i reset my password as requested due to not working on my pc.
    my iphone can access the email etc with new password yet trying to access my icloud via pc and will not work. password or id not correct. bull! help help help. at work finishing my presentation.

    I am having the same issues with this password mess. Already reset it 3 times.

  • MY APPLE ID IS DISABLED AND I HAVE RESET MY PASSWORD...STILL NOT WORKING

    My Apple ID is disabled.  I followed the instructions and reset my password but it still doesnt's work...any suggestions?

    Contact iTunes.
    Apple - Support - iTunes - Contact Us

  • [Solved] Systemd in user mode not working properly

    Hello.
    I wrote this Systemd service that I would like to run as normal user.
    [Unit]
    Description=Google Drive mount
    After=network-online.target
    Wants=network-online.target
    [Service]
    ExecStart=/usr/bin/google-drive-ocamlfuse -m '/home/egidio/Google Drive'
    ExecStop=/usr/bin/fusermount -u '/home/egidio/Google Drive'
    [Install]
    WantedBy=default.target
    I start it and everything seems fine, but when I try to access the mounted point, I get this error.
    [egidio@egidiolaptop user]$ ls -la ~/Google\ Drive
    ls: cannot access /home/egidio/Google Drive: Transport endpoint is not connected
    If I run the ExecStart command manually everything works perfectly.
    Can you please help me?
    Last edited by Aegidius (2015-05-13 18:17:12)

    This is the output of journalctl --all
    May 12 20:55:04 egidiolaptop /usr/lib/gdm/gdm-x-session[19552]: Activating service name='org.gnome.Terminal'
    May 12 20:55:04 egidiolaptop /usr/lib/gdm/gdm-x-session[19552]: Successfully activated service 'org.gnome.Terminal'
    May 12 20:55:26 egidiolaptop gnome-session[19563]: 1431456926458 addons.update-checker WARN Update manifest for {972ce4c6-7e08-4474-a285-3208198ce6fd} did not contain an updates property
    May 12 20:56:03 egidiolaptop systemd[19544]: [/home/egidio/.config/systemd/user/googledrive.service:2] Unknown lvalue 'Type' in section 'Unit'
    May 12 20:56:03 egidiolaptop systemd[19544]: Cannot add dependency job for unit network-online.target, ignoring: Unit network-online.target failed to load: No such file or directory.
    May 12 20:56:03 egidiolaptop systemd[19544]: Created slice -.slice.
    May 12 20:56:03 egidiolaptop systemd[19544]: Starting -.slice.
    May 12 20:56:03 egidiolaptop systemd[19544]: Started Google Drive mount.
    May 12 20:56:03 egidiolaptop systemd[19544]: Starting Google Drive mount...
    May 12 20:56:03 egidiolaptop fusermount[20547]: /usr/bin/fusermount: failed to unmount /home/egidio/Google Drive: Device or resource busy
    May 12 20:56:03 egidiolaptop systemd[19544]: googledrive.service: control process exited, code=exited status=1
    May 12 20:56:03 egidiolaptop systemd[19544]: Unit googledrive.service entered failed state.
    May 12 20:56:03 egidiolaptop systemd[19544]: googledrive.service failed.

  • How to get to single user mode

    I aquired an old power mac G4 with an old account with 10.3.9 and an old administrator account.  It seems that procedures to remove the account start in Single user mode.  The computer won't start when holding down system - s.  The drive clicks a few times but the display goes to sleep from no video signal.  So How can I get to single user mode when the usual way don't work?

    The hard drive's directory may be dead, or it may have last been booted into Mac OS 9.  IF you are lucky, they did install Mac OS X on it, and that can be determined either through an Option key boot, or through an X key boot on a wired (not wireless) USB Apple compatible keyboard.   X key booting will only work if the X operating system is on the same partition, whereas Option key boot will reveal the Startup Manager, where you select the drive and hit the right pointing arrow for the drive partition that has Mac OS X.   Note this will not work on an original PCI PowerMac G4.   You may also need to replace the PRAM battery, a 1/2 AA 3.6V battery from Radio Shack before any boot sequence will work.  Once it boots into Mac OS X, Single User Mode should work.

  • Start SQL Server in single user mode with parameter -m doesn't work well

    C:\Windows\system32>net start mssqlserver /m "Microsoft SQL Server Management St
    udio - Query"
    The SQL Server (MSSQLSERVER) service is starting.
    The SQL Server (MSSQLSERVER) service was started successfully.
    C:\Windows\system32>sqlcmd -S . -e
    1> go
    1> select @@servername;
    2> go
    select @@servername;
    myserver
    (1 rows affected)
    1>
    As you can see, I'm still able to connect with sqlcmd prompt to SQL Server. According production doc of SQL Server 2014, it should not be conncting by sqlcmd. it shall only be connected by SSMS.
    below the original doc on msdn:
    Start SQL Server in Single-User Mode
    Provide Feedback
    Under certain circumstances, you may have to start an instance of SQL Server
    in single-user mode by using the startup option -m. For
    example, you may want to change server configuration options or recover a
    damaged master database or other system database. Both actions require starting
    an instance of SQL Server in single-user mode.
    Starting SQL Server in single-user mode enables any member of the computer's
    local Administrators group to connect to the instance of SQL Server as a member
    of the sysadmin fixed server role. For more information, see Connect to
    SQL Server When System Administrators Are Locked
    Out.
    When you start an instance of SQL Server in single-user mode, note the
    following:
    Only one user can connect to the server.
    The CHECKPOINT process is not executed. By default, it is executed
    automatically at startup.
    Note
    Stop the SQL Server Agent service before connecting to an instance of SQL
    Server in single-user mode; otherwise, the SQL Server Agent service uses the
    connection, thereby blocking it.
    When you start an instance of SQL Server in single-user mode, SQL Server
    Management Studio can connect to SQL Server. Object Explorer in Management
    Studio might fail because it requires more than one connection for some
    operations. To manage SQL Server in single-user mode, execute Transact-SQL
    statements by connecting only through the Query Editor in Management Studio, or
    use the
    sqlcmd utility.
    When you use the -m option with sqlcmd or
    Management Studio, you can limit the connections to a specified client
    application. For example, -m"sqlcmd" limits connections to a
    single connection and that connection must identify itself as the
    sqlcmd client program. Use this option when you are starting
    SQL Server in single-user mode and an unknown client application is taking the
    only available connection. To connect through the Query Editor in Management
    Studio, use -m"Microsoft SQL Server Management Studio - Query".
    Shawn

    Hi Shawn Xiao,
    For starting SQL Server instance in single user mode, we can add –m; parameter in SQL Server Configuration Manager, also we can run CMD with ‘Run as administrator’ and input the following statement.
    NET START MSSQLSERVER /m
    I do a test in SQL Server 2014 Express version, after starting SQL with Single User Mode, SQL Server will only accept one connection. If you connect to SQL Server with a user account, the following error will occur.
    Login failed for user ‘domain\username’. Reason: Server is in single user mode. Only one administrator can connect at this time.
    However, in your situation, you can connect to SQL Server and run T-SQL statement successfully, it can be due to connection with the administrator account in your sqlcmd.
    For more information, you can review the following article.
    http://zarez.net/?p=117
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Why can't I enter single user mode on my Mac Mini for an admin password reset?

    Hi,
    I recently created a new user account for my mac and deleted the old one, not realising that this was the only account with admin priveleges. As such, I no longer have access to administrator priveleges, and cannot grant them to my new user account.
    I have tried to boot in single user mode and recovery mode but neither command results in any reaction on the part of my computer.
    This thread follows on from a previous, unrelated disscussion:
    BDAqua: If you hold alt key at bootup do you see a lock in the middle?
    Yenots: No...what does this mean?
    BDAqua: If it did, it would mean Firmware Password Protection was enabled, which prevents booting in other modes, so that's not the problem, are you using a wired Mac KB, or Windows KB?
    Yenots: I'm using an 'Apple Keyboard with Numeric Keypad' [ http://store.apple.com/uk/product/MB110B/B/apple-keyboard-with-numeric-keypad-br itish ]
    If you find me here BDAqua, hit me with your knowledge!
    Any other contributions are welcome and, now we're under the right heading, will hopefully help other users who have encountered this problem.
    Thanks, Cristo

    Hi,
    Thanks for the link to MacPilot, and the sexy screenshot. I found an archived version for 10.4 on the koingosw website. That solves getting into single user/safe mode. Though I'd be interested to see whether sudo nvram boot-args="-s" will result in single user boot.
    As for creating administrator priveleges for my new user account, I've found a method which looks good:
         \single user mode\
         cmd-s
         \mount drive\
         mount -uw
         \open 'directory access'\
         lauchctl load /System/Library/LaunchDaemons/com.apple.opendirectory.plist
         \list users\
         ls /Users
         \change password\
         dscl . passwd /Users/<username> <password>
    I think that this method intends that if I change the root users password I'll be changing the administrator password  (as root is the only user with administrator priveleges), and subsequently be able to change my new user accounts priveleges using 'netinfomanager'. But I'm not 100%. Could you give me your opinion on this?
    Furthermore, three keys 'L' 'O' and '(' aren't working on my keyboard, which means I can't try this until I find an intact keyboard to borrow. I was thinking maybe a mod version of the above instructions would work in terminal using sudo, so I could use the keyboard viewer to type the missing characters. If you have any ideas on constructing such a mod I would be interested to hear them.
    Otherwise, Thank You for your help BDAqua! And enjoy your summer wherever you are.

  • Resetting the Admin password in single user mode

    Ok, my friend bought an old Imac from someone she went to school with with OS 10.4.2 on it. It works fine except that she can not install any programs because there is an admin password that she does not know. She asked the person she bought it from, he says he doesn't even remember setting a password. Normaly with this issue id just pop in the install disk and reset it from there, except neither of them have the install disk, and my install disk is to current for the machine. Does anyone know how I can reset the admin acount using single user mode commands? I can do it on my Mac Book pro but it doesn't seem to work the same way on 10.4. Please help!
    EDIT: It is a Power PC G3 if that helps.
    Message was edited by: CartooNxHerO

    CartooNxHerO wrote:
    Ok, so I used the advice from the third link you gave me but i'm still in single user mode trying to figure out how to delete the users home folders.
    Message was edited by: CartooNxHerO
    You do not need to delete "the users home folders". Nor do you need to delete the netinfo database. Here are two proceedures:
    Change Password
    Mac OS X:
    Changing or resetting an account password via GUI:
    Resetting a user's password
    Resetting the original administrator account password
    http://docs.info.apple.com/article.html?artnum=106156
    You do not have a CD/DVD
    Changing password from single user mode:
    You can also change the administrator's password from single user mode or create a new administrator account.
    You need to get into single use mode for steps one and two that are listed below.
    This page will tell you how to get into single user mode.
    http://support.apple.com/kb/HT1492
    Basically, you hold down the command-s key then powering on your machine. The command key has a little apple symbol on the lower left. It is between the alt/option key and the space bar. On a PC keyboard, it will be the windows key, I think.
    1) You can change the password on an account. ( Do you know Unix. You are in a Unix single user console. ) The setup commands you need should be listed on the screen. For Mac OS 10.4.11, the commands are:
    # Type the follow two instructions to access the startup disk in read/write:
    /sbin/fsck -fy
    /sbin/mount -uw /
    # Start up some utility processes that are needed.
    sh /etc/rc
    # You will probably need to press the return key once the system stops typing.
    # To find out the users on the system type, use the list command. The l is a lower case L:
    ls /Users
    # One of these accounts will be the administrator.
    # Pick one of the users which I'll call a-user-name and type it in this command:
    passwd a-user-name
    # and enter the new user password. You need six characters.
    # You will need to enter your password twice. Your typing will not show up on the screen just
    # press enter when you complete the typing.
    # For cryptic information on these commands try:
    man ls
    man passwd
    The root account isn't enabled by default. I am not sure if changing the password on root will enable it.
    2) Get the Mac to set up an additional administrative account. You can then change the password on your old account.
    Start with your computer power off. Hold down command-s. Power on your computer.
    Type in the following:
    The first two commands will depend on your release of Mac OS X. Look at what is typed out in the console to determine the exact format.
    # Type the follow two instructions to access the startup disk in read/write. Press return after each command.
    /sbin/fsck -fy
    /sbin/mount -uw /
    cd /var/db
    pwd
    #List all files. The l is a lower case L.
    ls -a
    #The move command acts as a rename command in this format.
    mv -i .applesetupdone .applesetupdone.old
    reboot
    Once you've done that the computer reboots and it's like the first time you used the machine. Your old accounts are all safe. From there you just change all other account passwords in the account preferences!!
    Limnos adds detailed explainations:
    http://discussions.apple.com/message.jspa?messageID=8441597#8441597
    The above the idea came from a post by JoseAranda at September 9, 2006 3:48 AM
    http://www.askdavetaylor.com/howdo_i_reset_my_mac_os_x_admin_rootpassword.html
    You will need to scroll down to see this post. Search for applesetupdone
    Or see:
    http://superpixel.ch/articles/running-setup-assistant-again/
    Once you have a new administrative account, you can change the password of your old administrative account
    blue apple > System Preferences > Accounts

  • How do I reset Tiger Mac OS X 10.4 admin password by using single-user mode

    bought a used PowerBook G4 on Ebay. The administrator's password was locked. The Powerbook still can run to the normal screen. However, I am unable to update and install software without a password.
    I don't have the original install CD either the second mac for firmware reset. So I wonder if anyone knows how to reset the password by using single user mode or any other methods to do so?
    Any input will be greatly appreciate it. Thanks.
    Powerbook G4   Mac OS X (10.4)  

    This morning we lost power and my iMac G5 (10.4) system got messed up. Specifically, when it restarted, all text in all Finder and application menus were blank (e.g. Click the Apple menu and a long empty white box stretching to the bottom of the screen would appear with no text. The whole box turns blue when you click in it. Ditto for all other finder menus and dialog boxes. Event the User menu was empty. The Disk Utility application shows only icons and empty buttons--no text.)
    Restarting in Safe Mode was no better.
    I then connected the G5 as a target disk to my iMac G4, and ran the OS X install that came with the G5 (10.3.2). It told me that in order to install an earlier OS X version, I must select certain options: I checked "Archive and Install" and "Preserve Users and Network Settings" (I have 4 accounts set up in addition to my onw admin account) and proceeded with the installation.
    At the end of installation, the G4 started (G5 is still in target disk mode) with the G5 as the startup disk. It presented the User Login screen (although it normally does auto-login on my account) but the password for each of the 5 accounts was rejected. The original hints still appear, but it seems that all passwords have been changed.
    I then tried the G5 on its own (not as a Target disk) but when it starts up the grey Apple turns into a grey "do not enter" (circle/slash) icon and goes no further.
    Can you suggest what I should do now?
    iMac G5 2.0GHz   Mac OS X (10.4.7)  

  • How to reset admin password in single user mode

    How do I reset and admin password in single user mode. All the posts I have read so far dont work. I tried adding a new admin password as posted on the forums by deleting setup so it will setup like it was first time setup but that didnt work . Any suggestions would be appreciated.
    The account now only has the standard user account as admin. Admin account I deleted in trying to fix this problem.

    1 - Does it boot into Leopard?
    2 - Does it have any important data on it that is not backed up elsewhere?
    It it boots into Leopard you could continue using it and hope that you find your Leopard install disks later or discover some other way to overcome the lost password.
    If it is fully backed up or has no important data on it you could install Tiger.

  • Can't log in with valid password, can't boot from disk, can't access disk utility, in single user mode can't reset password as appears locked in caps mode with '?' for forward slash, can anyone help?

    Can't log in with valid password, can't boot from disk, can't access disk utility, in single user mode can't reset password as appears locked in caps mode with '?' for forward slash, can anyone help?

    Which keyboard layout you were using? German, French ... I suppose your layout is reset to the default: US and you are unable to find the "?" or "/" ...
    Please have a look into the keyboard viewer, to see how the layout of your keyboard is actually.
    marek

Maybe you are looking for

  • Problem with Spry:Repeat and Slide Effect on IE6

    I run the website for my kids' hockey association and I'm not a web programmer. I am trying to display events in a Spry region using spry:repeat. The data is coming from a Google Calendar . I display the event date and title on the main page. I have

  • Unable to Rename Events in iPhoto

    I have tried everything to rename events in iPhoto, nothing works. When you click on the event name, it switches to what looks to be an "editable name" view as you would expect. However, typing does not change the text, and I am unable to select the

  • [solved] vsftpd: Uploaded files are with permissions -rw-------.?

    Hello, I have a problem with the ftp server(vsftpd).The new files are saved with permissions 600 (rw ----). So apache server can't show them. Ftp access is configured with my local user and this home is in /srv/http. The trouble is the user config ac

  • Bex Query Broadcasting Problem

    HI ,             My Enterprise Portal is working fine in sense that it is showing me the accurate result of query But when i am trying to broadcast it , it gives me the error saying OPERATION TIME OUT in the browser. I also checked the TCP/IP connect

  • My 15 inch Mac Book Pro is heating up...

    I took it into Apple, and after the tests, the fans are running fine. I had a keyboard cover & was advised to take it off, as it was absorbing the heat in. The worker at Apple said everything was fine, I'm just extra paranoid with my baby(Mac).  He a