You are not logged in.

#1 2007-03-25 14:47:45

Dylan103
Member
Registered: 2006-10-19
Posts: 23

Terminal help

Is it possible to make it so I dont have to always type is su, then my pass to install things?

Offline

#2 2007-03-25 14:56:18

Zer0
Member
From: Windsor, ON, Canada
Registered: 2006-08-25
Posts: 299

Re: Terminal help

install sudo, edit /etc/sudoers with visudo, uncomment the wheel group line with the functionality that you want (password or no password), add your user to the wheel group.

sudo [commnand]

Offline

#3 2007-03-25 15:30:14

Winblowz99
Member
Registered: 2007-03-24
Posts: 27

Re: Terminal help

You could go the sudo route like Zer0 said, but it would probably be more trouble then it is worth if you have to type 'sudo' every time.

Offline

#4 2007-03-25 15:33:20

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: Terminal help

I don't think thats what he meant. Sudo is in the right direction anyway.
add this to /etc/sudoers (with visudo);

dylan ALL=NOPASSWD: /usr/bin/pacman

Now, using vi is kind of confusing if it's the first time.
i = insert text before cursor
a = append text after cursor
o = open new line to insert text in

use escape to escape "edit mode"
then you can do ":wq"
to save and quit, or ":q!" to just quit without saving.

presto, pacman with sudo, but no password!
btw, be careful with things like this.


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#5 2007-03-25 15:55:11

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,718
Website

Re: Terminal help

vi and visudo are not the only way to edit the /etc/sudoers.
The file can also be edited with nano and works just as well as the other two. I've done it that way per years now.

Hope this helps.

R

Offline

#6 2007-03-25 16:20:44

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: Terminal help

listen, there's a reason people use visudo instead of nano, it's because visudo does syntax/error checking on sudoers before save+quit.


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#7 2007-03-25 16:20:52

Dylan103
Member
Registered: 2006-10-19
Posts: 23

Re: Terminal help

pelle.k thank you, and thank you others. I put them all together and go it working.
Now, I just wanna know how to rename users.

Offline

Board footer

Powered by FluxBB