Results 1 to 8 of 8

Thread: Permissions

  1. #1
    Join Date
    May 2005
    Location
    At home
    Beans
    486

    Permissions

    Hi all.

    How can I give a second user 'sudo' privileges on this account. I have no access to the orginal account, cause I have messed things up severly and nedd this second account to use my computer.

    /Thanks.
    Try the beautiful Enlightenment17 distro OzOS. | Easy way to install Enlightenment17 from CVS.
    Thanks Rui Pai for all you work intergrating this beautiful Desktop Shell with Ubuntu.

  2. #2
    Join Date
    Oct 2007
    Location
    Oregon, USA
    Beans
    1,537

    Re: Permissions

    Are you saying you have no administrative privileges with the current account?

  3. #3
    Join Date
    May 2009
    Location
    Seattle, WA USA
    Beans
    19
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Permissions

    The way to add new sudo privileges is via the "visudo" utility (man visudo). The only catch here is that you need root to use visudo. So if you've lost your root password, this isn't going to help you.

  4. #4
    Join Date
    Jun 2008
    Location
    USA
    Beans
    98
    Distro
    Kubuntu 9.04 Jaunty Jackalope

    Re: Permissions

    The question is TOTALLY, "do you have any administrative priviledges now?" If the answer is "No," I believe you are in trouble.

    If you can get admin priviledges, there's a lot you can do. The easiest thing is to create the new user within you window manager. I use KDE but if you're gnome it shouldn't be that different. Select "user account" from the system settings submenu and find the listing for "add a new user". when you do, there should be a tab for "groups". Select it and make sure the "admin" group is checked. There may, alternatively, be a prompt like,"should the user be allowed to administer the computer?" Obviously, click yes, there.

    If that's not working I can give you some BASH code that you can use from a terminal session, but I don't want to type it all out unless you can sudo, now. If you can't use su or sudo, I don't know of anything that can be done.

    Also, regarding visudo, I wouldn't do it. usually the way to add sudoers is by adding the 'admin' group to a user's groups. sudoers is better for creating specialized sets of admin priviledges than it is for adding administrators. It's also real easy to screw up big. stay away from sudoers unless you REALLY want to take a chance.
    Last edited by Polaris96; June 4th, 2009 at 06:00 PM.

  5. #5
    Join Date
    Jun 2006
    Location
    North Carolina, USA
    Beans
    784
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Permissions

    See if you can fix it with this.

    http://www.psychocats.net/ubuntu/fixsudo

  6. #6
    Join Date
    Nov 2006
    Location
    Montreal, Canada
    Beans
    485
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Permissions

    Quote Originally Posted by Freddy View Post
    Hi all.

    How can I give a second user 'sudo' privileges on this account. I have no access to the orginal account, cause I have messed things up severly and nedd this second account to use my computer.

    /Thanks.
    Can you not log in to the original account at all, or can you simply not use sudo from that account? If it's the former, the link above looks good. If it's the latter, you could try booting from a LiveCD, mounting the HDD, and editing /etc/group manually.

  7. #7
    DeMus is offline I Ubuntu, Therefore, I Am
    Join Date
    May 2008
    Location
    The Netherlands
    Beans
    2,146

    Re: Permissions

    Quote Originally Posted by Freddy View Post
    Hi all.

    How can I give a second user 'sudo' privileges on this account. I have no access to the orginal account, cause I have messed things up severly and nedd this second account to use my computer.

    /Thanks.
    Yesterday around this time of day there was another user who had the same problems. It seems to be possible to boot without passwords and then set a new password for your account. Just start looking here for threads which are about 24 hours old.

    I do realize it is a shot in the dark so I helped you looking for the thread. I found two of them. Just have a look here:
    http://ubuntuforums.org/showthread.p...r+root+account

    and here
    http://ubuntuforums.org/showthread.p...r+root+account

    Success
    Last edited by DeMus; June 4th, 2009 at 06:53 PM. Reason: Added url with possible answers

  8. #8
    Join Date
    May 2005
    Location
    At home
    Beans
    486

    Re: Permissions

    Thanks all.

    'adduser username admin' from 'rescue mode' did the trick, finally I could locate and fix the problem with my previous user account.

    /Freddy.
    Try the beautiful Enlightenment17 distro OzOS. | Easy way to install Enlightenment17 from CVS.
    Thanks Rui Pai for all you work intergrating this beautiful Desktop Shell with Ubuntu.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •