SuperUser Nautilus

Is there a way to launch nautilus as super user. I am doing a lot of tinkering and the repeated password entry is getting really tedious.

Can Yast be launched as SuperUser so as to avoid the endless password entry?

Before you tell me how dangerous that is, I already know. But it is my system and my fault if I screw up. I think Linux is just a little too anal when it comes to protecting me from myself.

Ideally those of us who live alone, have a computer in a locked dwelling, that is only ever used by us, should be allowed to select to use Linux without all these passwords. :frowning:

Anyway, any help appreciated,
Simon

I’m just a new amateur, but I just run a terminal and type su then enter then password then nautilus
works for me…

Yes, but I want to try and eliminate the password. Add a nautilus link to the menu bar and click it and get Nautilus with root priv.

Simon

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Well, perhaps try ‘gnomesu nautilus’ in your Alt+F2 menu though unless
‘/etc/sudoers’ has some effect on this you’ll still need a password. Do
you really need access to Nautilus as root enough to create an icon? Of
all the apps I wouldn’t want to run as ‘root’ nautilus (or any file
browser) is near the top of my list since an accidental keystroke can
wipe out files, directories, filesystems, etc. Bad times indeed…

Good luck.

sjewins wrote:
> xaiviax;1875313 Wrote:
>> I’m just a new amateur, but I just run a terminal and type su then
>> enter then password then nautilus
>> works for me…
>
> Yes, but I want to try and eliminate the password. Add a nautilus link
> to the menu bar and click it and get Nautilus with root priv.
>
> Simon
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI2rrM3s42bA80+9kRAlJfAJ99jYr4BFoy24u6Ycp35dIzVw8M4wCdElZ/
y7PzSg+TABOLuZkh4/YiRts=
=oeW/
-----END PGP SIGNATURE-----

Yeah, but that’s what backups are for. I like tinkering. I have broken and reinstalled this system more times than I can count. Not a big deal.

Anyway, thanks for the suggestion. I tried it and it still wanted a password.

Another thought, can a user (me, the only one) be assigned root privs somehow (like su) but that last for the whole session instead of just the one command or program. Sort of like, do it once at the beginning and then be root until you tell it to stop?

I figured out sudoers and now have eliminated the request for a sudo password which helps but it still isn’t enough.

Ah, well, I guess I’ll just log in as root all the time. Just can’t figure out how to auto-login root. Root isn’t in the drop-down list for auto-login. <sigh>

Well, not concerned about shooting yourself in the foot :slight_smile: so to say, you could of course login as root and run as such all the time.
However if only a few applications like yast and nautilus are the ones you would like to run as root you could use the sudo command.

First you need to edit the /etc/sudoers file using the command visudo, as root of course. It will enter the vi editor and open the /etc/sudoers file automatically. Then add the following lines

ALL ALL=(root) NOPASSWD: /sbin/yast2
ALL ALL=(root) NOPASSWD: /usr/bin/nautilus

Save and exit vi.
As a normal user you should then be able to start yast by typing

sudo /sbin/yast2

at a command shell prompt.
For nautilus you may have to set xhost to accept connections first and then start it like

xhost +
sudo /usr/bin/nautilus --display=:0.0

If you don’t want to type that every time, put it in a shell script and run it.

You may find the vi editor a bit awkward if you haven’t used it before. It works in modes and starts in command mode. Typing an a lets you append text, an i means insert, x deletes a character to the right of the cursor. ESC brings you back to command mode. The sequence ESC : w writes the file to disk and ESC : q exits the editor.

Good luck!

Very helpful, thanks very much. The nautilus script thingie works a treat.

Again, thanks.

Simon

Hi
Why not just open a cli session and su - to root? Just start apps from
the cli…? If your moving files around, look at using the mv command?


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.16-0.1-default
up 1 day 11:30, 2 users, load average: 0.00, 0.03, 0.01
GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12

I just tried that and it is pretty good. I can just open the shell at the start and run from there.

I have arthritis in my fingers and much prefer point and click to all that typing but this is quite workable.

Thanks.

Simon

Hi
Look at using the virtual keyboard and also you could copy common
commands you run to a file via the history command.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.16-0.1-default
up 1 day 11:54, 1 user, load average: 0.40, 0.37, 0.26
GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12

rackham wrote:
> Well, not concerned about shooting yourself in the foot :slight_smile: so to say,
> you could of course login as root and run as such all the time.

that is probably the worst way to do it (imo)…but, i guess it would work…

just short of that might be the idea to set the root password to nothing…then
anytime asked for the root pass, just hit enter…done!

i read the arthritis/live alone part and would STRONGLY suggest the blank
password as preferable over signing in as root…but, admit if you wanna do it
the same way you did it in M$-DOS 6.0 (and before) it will probably work…but,
might forever lock you out of using the system as yourself, as a regular
user…more on that at: http://tinyurl.com/6ry6yd


see caveat: http://tinyurl.com/6aagco
DenverD (Linux Counter 282315) via NNTP, Thunderbird 2.0.0.14, KDE 3.5.7, SUSE
Linux 10.3, 2.6.22.18-0.2-default #1 SMP i686 athlon

w00t! Thank you!!!

What I did was add a ‘Nautilus (Super User)’ icon to the panel using the application launcher - with the following as the command(s):

gnomesu nautilus --no-desktop --browser %U

It asks me for the password, and away you go…

Works like a charm! :slight_smile:

Emmm. Someone could tell me please, ?How can I save the file in visudo¿, I can´t find the command in the menu.

Hi
The same as using vi press


write and quit
<esc>:wq
write and continue
<esc>:w
quit and don't save
<esc>:q!

See the man page for vi :slight_smile:


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 20 days 1:03, 3 users, load average: 0.13, 0.05, 0.01
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18