You are not logged in.

#1 2006-06-22 19:59:32

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

op

I am readin' up on op ... wondered if anyone had tried it .....?

http://freshmeat.net/projects/op/

Is a more friendly (config wise!) version of sudo .....


Mr Green

Offline

#2 2006-06-23 08:23:38

ScriptDevil
Member
From: In Front of My PC
Registered: 2006-04-06
Posts: 253

Re: op

sudo is user firendly enough for me. But thanks for bringing op to my notice


Be yourself, because you are all that you can be

Offline

#3 2006-06-23 13:56:46

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: op

Sudo's friendly enough for me too... It's not exactly designed to make things difficult after all.

(BTW, isn't it generally a bad sign when a project's homepage is 404? :shock: )

Offline

#4 2006-06-23 17:10:44

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: op


Mr Green

Offline

#5 2006-06-23 20:38:41

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: op

Well, it looks nice, I suppose... Not sure I like the mnemonics though, that just seems to me to smack of trying to fix something that ain't broken.

(I do have to ask though, does an arbitrary command executed with op have full root privileges, as with sudo? Forgive my ignorance..)

Offline

#6 2006-06-24 18:04:36

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: op

just read an article about op ... states mostly that configs are more flexible ..

thats all ...

I like using sudo .... safer sometimes than running root all the time

will read up more ;-)


Mr Green

Offline

#7 2006-06-24 19:39:38

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: op

I hate the sudoers configuration syntax. its so ugly. So ugly.

Offline

#8 2006-06-24 19:46:20

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: op

then take a look at ops .... then tell me what you think ...

/me waits for Dusty to release some code ;-)


Mr Green

Offline

#9 2006-06-24 20:05:19

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: op

Find back post.


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#10 2006-06-24 20:23:57

petebull
Member
Registered: 2006-06-19
Posts: 4

Re: op

Dusty wrote:

I hate the sudoers configuration syntax. its so ugly. So ugly.

I looked at the linked op-site. It's configuration language looks at least equally ugly.

What I really like about sudo is the wrapper for editing the config "visudo" which prevents getting locked out because of syntax errors.

I never tried to implement a fine granulated sudoers.

Offline

#11 2006-06-24 20:28:55

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: op

Errr an example

command_shortcut command; options

very much like alias ...

halt /sbin/halt; users=mrgreen

now this means that mrgreen now has permission to shutdown system thus

op halt

but I hear you cry ... I have not entered a password, fear not ... simply add

halt /sbin/halt; users=mrgreen password

this is just the tip of the iceberg ... I may give op a go in the near future

MrG


Mr Green

Offline

#12 2006-06-28 23:21:30

petebull
Member
Registered: 2006-06-19
Posts: 4

Re: op

What do you like? That you can assign a shortcut?

Look up "EXAMPLES" in "man sudoers" and tell me what is harder to understand in regard to the "op" syntax

mrgreen ALL=/sbin/halt

Offline

#13 2006-06-29 01:13:00

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: op

I agree...I've never thought the sudoers syntax was at all complex (especially in comparison to some configs... like sendmail  big_smile )

Offline

#14 2006-06-29 06:02:21

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: op

Ok ..

I just read a article about op thats all I not trying to convert anyone to it ...

just thought I would try it out myself

I used the above as an example

there are other things you can do with op

If you are happy using sudo then fine

/me has sudo set up .....


Mr Green

Offline

#15 2006-06-29 20:58:21

Bison
Member
From: Jacksonville, FL
Registered: 2006-04-12
Posts: 158
Website

Re: op

Dusty wrote:

I hate the sudoers configuration syntax. its so ugly. So ugly.

Its not so bad...Its pretty simple...

You can just edit it once and forget about it.

Offline

#16 2006-06-30 07:24:41

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: op

I am thinking now that on a system with more than one user op might handy ....

for most of us we run just as user & root so sudo does the job

user having control over installing, removing & editing root files to me is a little unsafe...

Of course you can change all this in suders file

Will be running op for a little while see how it goes ...


Mr Green

Offline

#17 2006-07-01 16:38:24

deficite
Member
From: Augusta, GA
Registered: 2005-06-02
Posts: 693

Re: op

I think I'll stick to sudo for the moment. With sudo you really don't have to do anything special to get it to work, you just type sudo and then the command, or sudo -s to bring you into a sudo shell. While I'm not saying op requires a whole lot of effort, the script looks simple as cake, I don't want to have to manage it. I just want to type the command like it is and how it is.

Offline

#18 2006-07-01 16:51:39

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: op

thats cool .....

Just thinking that opening up user to do everything with the same rights as root ...is to me  :shock:

But I would rather allow only certain commands to run as user ie halt mount...

pacman maybe not

it can do other things as well ..... like start & stop apache but you can do that anyway

So ... np

I'll use it for the moment till I get bored ;-)


Mr Green

Offline

#19 2006-07-02 00:23:57

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: op

hmm. op looked to have much more intuitive syntax than sudo.


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

#20 2006-07-02 06:05:29

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: op

I added ....

dvd       /bin/mount /dev/hdc /mnt/dvd                                         
eject     /usr/bin/eject                                                       
halt      /sbin/halt                                                           
messages  /bin/cat /var/log/messages                                           
upgrade   /usr/bin/pacman -Syu 

* note upgrade still requires a user password

Again they are examples


Mr Green

Offline

#21 2006-07-02 06:06:03

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: op

I added ....

[ ~ ] > op -l
dvd       /bin/mount /dev/hdc /mnt/dvd                                         
eject     /usr/bin/eject                                                       
halt      /sbin/halt                                                           
messages  /bin/cat /var/log/messages                                           
upgrade   /usr/bin/pacman -Syu                                                 
[ ~ ] > 
 

* note upgrade still requires a user password

Again they are examples


Mr Green

Offline

Board footer

Powered by FluxBB