Results 1 to 6 of 6

Thread: Login as Root - ok it is a bad idea - an alternative specific to me please :-)

  1. #1
    Join Date
    Apr 2013
    Beans
    72

    Login as Root - ok it is a bad idea - an alternative specific to me please :-)

    Hello,

    I have a computer repair business and have successfully completed (many years ago now) the Comptia A+ certification.

    To recover files from hard drives that won't boot into Windows I previously used a different option but now have Ubuntu installed on my computer (Dual boot with Windows 7).

    So I am an absolute beginner with Ubuntu.

    So far I am happy with Ubuntu 12.04 as by attaching drives that won't boot into Windows anymore via a docking station I can access personal files and copy them onto my external drive.

    I usually don't work with Apple computers at all but my Niece has one and I found that logging into Ubuntu as myself and then recovering her files requires more permissions than I have.

    From what I understand I could login as root but a newby to Ubuntu like myself could screw things up So my question is how can I login as myself and then temporarily allow myself enough privileges to copy and paste my Nieces files to an external drive in advance of reloading OSX and copying the files back for her?

    PS, getting used to a Command Line (I mean Terminal) again is quite a bit of fun. Although requiring learning, it seems a lot more can be done this way

    Cheers,

    Paul

  2. #2
    Join Date
    Jun 2007
    Location
    Paraparaumu, New Zealand
    Beans
    Hidden!

    Re: Login as Root - ok it is a bad idea - an alternative specific to me please :-)

    Forum DOs and DON'Ts
    Please use CODE tags
    Including your email address in a post is not recommended
    My Blog

  3. #3
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Login as Root - ok it is a bad idea - an alternative specific to me please :-)

    To read/write files on a mac formatted partition you will also need to install hfsplus and perhaps some other hfs packages, I think, but once you can mount the disks/partitions after that, you should manage to copy the files from the disk using sudo, just like any other files.

  4. #4
    Join Date
    Feb 2006
    Location
    Poznań
    Beans
    41
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Login as Root - ok it is a bad idea - an alternative specific to me please :-)

    If you *have* to login as root, just run the command:
    sudo su

    However, read the above referenced post as all of the warnings about working as root apply. I find that the 15 minute window for sudo is usually plenty of time. Or, if necessary, running a shell as root (as mentioned in the thread) does what I need to do.

    Peace,
    Paul

  5. #5
    Join Date
    Apr 2013
    Location
    Bordeaux, France
    Beans
    122
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Login as Root - ok it is a bad idea - an alternative specific to me please :-)

    You cuold go with the terminal.
    don't log as root, use sudo + command (I guess you'd use the 'cp' command ) for privilege elevation during the commands execution in terminal

  6. #6
    Join Date
    Dec 2005
    Location
    Western Australia
    Beans
    11,480
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Login as Root - ok it is a bad idea - an alternative specific to me please :-)

    Quote Originally Posted by West Swan View Post
    So my question is how can I login as myself and then temporarily allow myself enough privileges to copy and paste my Nieces files to an external drive in advance of reloading OSX and copying the files back for her?
    You can run a command as root by prefacing it with 'sudo', or you can run a graphical program as root using "gksudo".

    Now, you want to copy a file, not exactly run a command or a program; but this is all interlinked. You can use the terminal to copy files, in which case you can use 'sudo':

    Code:
    sudo cp /media/MacOSX/* /media/Backup/
    Or, to make it easier for yourself, you can run the standard file manager program as root by putting this into the terminal:

    Code:
    gksudo nautilus
    (Nautilus is the file manager program)

    Within the file manager window you've opened as root, you can copy the files.
    I try to treat the cause, not the symptom. I avoid the terminal in instructions, unless it's easier or necessary. My instructions will work within the Ubuntu system, instead of breaking or subverting it. Those are the three guarantees to the helpee.

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
  •