Page 18 of 20 FirstFirst ... 81617181920 LastLast
Results 171 to 180 of 194

Thread: Alan Cox Calls Fedora 18 "The Worst Red Hat Distro"

  1. #171
    Join Date
    Sep 2008
    Location
    Vilnius, Lithuania
    Posts
    2,554

    Default

    Quote Originally Posted by lsatenstein View Post
    Whein I run sudo nautilus or sudo nemo, nemo or nautilus has root privileges, and I am in /root I do not want to do so because I do not want to be in /root.
    That's why you should also append a dot, so instead of "sudo nautilus", "sudo nemo" or "kdesu dolphin", do "sudo nautilus .", "sudo nemo ." or "kdesu dolphin .", they will then default to the directory they were called from. Also, in KDE the shortcut in the K menu is also set to default to starting in ~ instead of /root.

    Quote Originally Posted by lsatenstein View Post
    I am in Montreal Quebec Canada. GreatEmerald, where are you located?
    Lithuania. I should probably update my profile to show that, hmm...

  2. #172
    Join Date
    Aug 2008
    Location
    Montreal Canada
    Posts
    54

    Default Tried it, like it, thank you

    Quote Originally Posted by GreatEmerald View Post
    That's why you should also append a dot, so instead of "sudo nautilus", "sudo nemo" or "kdesu dolphin", do "sudo nautilus .", "sudo nemo ." or "kdesu dolphin .", they will then default to the directory they were called from. Also, in KDE the shortcut in the K menu is also set to default to starting in ~ instead of /root.




    Lithuania. I should probably update my profile to show that, hmm...
    I tried the dot, I like it, and will now not be following my old ways.

    It reminds me of setting up new path statements with a bash script, only needed to put the dot before the script name.





    The closest to Lithuania I have been is Riga Latvia.

  3. #173
    Join Date
    Sep 2010
    Posts
    229

    Default

    Quote Originally Posted by V!NCENT View Post
    You should not even have to run anything as root, except some commands, in which case "su" in a terminal is better than "sudo", because with sudo you either constantly have to type the damn sudo command, or automatically get root rights for a period of time, so the user looses track of what commands run as root, and what runs as user. Better just have a root terminal where one can be sure what commands will run as root and what commands run as user.
    With 'sudo -i' (or 'sudo -s' which does some things differently with the environment) you can start a root shell (provided the 'sudoers' config allows that for your user, of course).

  4. #174
    Join Date
    Sep 2010
    Posts
    229

    Default

    Quote Originally Posted by yogi_berra View Post
    Not quite. It was written because gnu su will never limit users from root access because someone decided RMS didn't need root access at MIT (he probably didn't) and it scarred him for life.
    Which is exactly what I said, except for using real world examples?

  5. #175
    Join Date
    Oct 2008
    Posts
    891

    Default

    Quote Originally Posted by JanC View Post
    Which is exactly what I said, except for using real world examples?
    not really, you said this:

    it was "invented" to allow certain users to run certain applications (with certain options) as root (or as a certain user) without (necessarily) needing the root password (or the password of that certain user).

    Additionally, it also logs every invocation.
    That just explains what sudo does, not why it was written.

  6. #176
    Join Date
    Oct 2007
    Location
    Toronto-ish
    Posts
    7,458

    Default

    Someone wanted a real world example ?


  7. #177
    Join Date
    Aug 2008
    Location
    Montreal Canada
    Posts
    54

    Default Found a circumvention

    Quote Originally Posted by JanC View Post
    With 'sudo -i' (or 'sudo -s' which does some things differently with the environment) you can start a root shell (provided the 'sudoers' config allows that for your user, of course).

    I recently started to use sudo nautilus . to start the shell with root priviledges in the current directory. I sometimes remain in the shell in order to do change ownerships.
    Text was increased in size to show the dot

  8. #178
    Join Date
    Dec 2011
    Posts
    2,053

    Default

    Quote Originally Posted by lsatenstein View Post
    I recently started to use sudo nautilus . to start the shell with root priviledges in the current directory. I sometimes remain in the shell in order to do change ownerships.
    Text was increased in size to show the dot
    You should only use 'sudo' for command-line programs.
    If you want to run application software with graphical user interfaces then you should use 'gksudo'.

    Like "gksudo nautilus ."

  9. #179
    Join Date
    Nov 2012
    Posts
    49

    Default

    Every distro has a worst release.

  10. #180
    Join Date
    Aug 2008
    Location
    Montreal Canada
    Posts
    54

    Default gksudo does not exist in Fedora 18

    Quote Originally Posted by uid313 View Post
    You should only use 'sudo' for command-line programs.
    If you want to run application software with graphical user interfaces then you should use 'gksudo'.

    Like "gksudo nautilus ."
    Is gksudo a shell script that calls sudo?

Posting Permissions

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