Re: Another Devuan annoyance: CLI default apps

2017-11-02 Thread Jonathan Dowland

On Tue, Oct 31, 2017 at 07:11:36PM -0300, Renaud (Ron) OLGIATI wrote:

Today for the first times since I upgraded my Debian Wheezy to Devuan
Jessie, I tried to use crontab;


Devuan support is off-topic on this mailing list, please use one of the
Devuan support channels: https://devuan.org/os/contact#mailing-lists


--

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Jonathan Dowland
⢿⡄⠘⠷⠚⠋⠀ https://jmtd.net
⠈⠳⣄ Please do not CC me, I am subscribed to the list.



Re: Another Devuan annoyance: CLI default apps

2017-11-01 Thread Ionel Mugurel Ciobîcă
On  1-11-2017, at 12h 52'17", to...@tuxteam.de wrote about "Re: Another Devuan 
annoyance: CLI default apps"
> On Wed, Nov 01, 2017 at 12:28:51PM +0100, Ionel Mugurel Ciobîcă wrote:
> 
> [...]
> 
> > What is a "Devuan"?
> 
> Devuan is a fork of Debian, which was made because some
> people were unhappy about how Debian handled the transition to
> systemd as the default init.
> 
> Cheers
 
Thanks, Tomás.

İonel



Re: Another Devuan annoyance: CLI default apps

2017-11-01 Thread Dejan Jocic
On 01-11-17, Reco wrote:
>   Hi.
> 
> On Wed, Nov 01, 2017 at 10:00:27AM +0100, Jochen Spieker wrote:
> > deloptes:
> > > 
> > > Indeed, thanks for the hint, however OP wanted to edit crontab, which 
> > > needs
> > > root access.
> > 
> > 'crontab -e' works for all users.
> 
> A more correct way to put it is 'crontab utilizes root access'.
> 
> $ ls -al /usr/bin/crontab
> -rwxr-sr-x 1 root crontab 34936 May  3  2015 /usr/bin/crontab
> 
> So, anyone can run crontab, that's true.
> Does not change the fact that crontab runs as root.
> 
> Reco
> 

That is SGID bit is for group, which is crontab, not root. On Debian,
every user can edit its own crontab file by default, which can be
changed if file /etc/cron.allow exists and user is added there, or if
/etc/cron.deny exists and user is not there.



Re: Another Devuan annoyance: CLI default apps

2017-11-01 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, Nov 01, 2017 at 12:28:51PM +0100, Ionel Mugurel Ciobîcă wrote:

[...]

> What is a "Devuan"?

Devuan [1], [2] is a fork of Debian, which was made because some
people were unhappy about how Debian handled the transition to
systemd as the default init.

Cheers

[1] https://en.wikipedia.org/wiki/Devuan
[2] https://devuan.org
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAln5tXEACgkQBcgs9XrR2kaeQACfbYsFcjpS64aD/8KgNWRklTKD
fjwAnRKFTbsCKrCYhx7GDGSaVxQu26us
=/xdH
-END PGP SIGNATURE-



Re: Another Devuan annoyance: CLI default apps

2017-11-01 Thread Ionel Mugurel Ciobîcă
On  1-11-2017, at 02h 01'08", Will Mengarini wrote about "Re: Another Devuan 
annoyance: CLI default apps"
> * Ron OLGIATI <ren...@olgiati-in-paraguay.org> [17-10/31=Tu 19:11 -0300]:
> >> [...] Devuan Jessie, I tried to use crontab [...]
> >> under Devuan, crontab opens the file with nano [...]
> 
> * deloptes <delop...@gmail.com> [17-11/01=We 09:23 +0100]:
> > [...] OP wanted to edit crontab, which needs root access.
> 
> It seems more likely that he was talking about running crontab(1),
> the command, rather than editing .
> 


What is a "Devuan"?

Ionel



Re: Another Devuan annoyance: CLI default apps

2017-11-01 Thread Reco
Hi.

On Wed, Nov 01, 2017 at 10:00:27AM +0100, Jochen Spieker wrote:
> deloptes:
> > 
> > Indeed, thanks for the hint, however OP wanted to edit crontab, which needs
> > root access.
> 
> 'crontab -e' works for all users.

A more correct way to put it is 'crontab utilizes root access'.

$ ls -al /usr/bin/crontab
-rwxr-sr-x 1 root crontab 34936 May  3  2015 /usr/bin/crontab

So, anyone can run crontab, that's true.
Does not change the fact that crontab runs as root.

Reco



Re: Another Devuan annoyance: CLI default apps

2017-11-01 Thread Will Mengarini
* Ron OLGIATI  [17-10/31=Tu 19:11 -0300]:
>> [...] Devuan Jessie, I tried to use crontab [...]
>> under Devuan, crontab opens the file with nano [...]

* deloptes  [17-11/01=We 09:23 +0100]:
> [...] OP wanted to edit crontab, which needs root access.

It seems more likely that he was talking about running crontab(1),
the command, rather than editing .

Ordinary users can run 'crontab -e' to edit their own <~/.crontab>s
without needing root access, as long as permitted by any
cron.{allow,deny} files (which, if extant, are in /etc on
Debian, but in /usr/lib/cron in the 2003 POSIX manual, and in
an "implementation defined" location in the 2008 POSIX manual).



Re: Another Devuan annoyance: CLI default apps

2017-11-01 Thread Jochen Spieker
deloptes:
> 
> Indeed, thanks for the hint, however OP wanted to edit crontab, which needs
> root access.

'crontab -e' works for all users.

J.
-- 
I am getting worse rather than better.
[Agree]   [Disagree]
 


signature.asc
Description: PGP signature


Re: Another Devuan annoyance: CLI default apps

2017-11-01 Thread deloptes
Ulf Volmer wrote:

> On 01.11.2017 00:00, deloptes wrote:
>> Renaud (Ron) OLGIATI wrote:
> 
>>> Now under Devuan, crontab opens the file with nano, which I hate,
>>> abominate, pursue with intense loathing...
> 
>> sudo update-alternatives --config editor
> 
> select-editor(1) is also an option (configurable per user). available in
> package sensible-utils (in the default install AFAIK).
> 
> best regards
> Ulf

Indeed, thanks for the hint, however OP wanted to edit crontab, which needs
root access.




Re: Another Devuan annoyance: CLI default apps

2017-10-31 Thread Ulf Volmer
On 01.11.2017 00:00, deloptes wrote:
> Renaud (Ron) OLGIATI wrote:

>> Now under Devuan, crontab opens the file with nano, which I hate,
>> abominate, pursue with intense loathing...

> sudo update-alternatives --config editor

select-editor(1) is also an option (configurable per user). available in
package sensible-utils (in the default install AFAIK).

best regards
Ulf



Re: Another Devuan annoyance: CLI default apps

2017-10-31 Thread deloptes
Renaud (Ron) OLGIATI wrote:

> Today for the first times since I upgraded my Debian Wheezy to Devuan
> Jessie, I tried to use crontab;
> 
> in Debian, it opened the file with vi, just as $DEITY had ordered it since
> the beginning of the world.
> 
> Now under Devuan, crontab opens the file with nano, which I hate,
> abominate, pursue with intense loathing...
> 
> How do I get crontab back to using vi ?
>  
> Cheers,
>  
> Ron.

sudo update-alternatives --config editor



Re: Another Devuan annoyance: CLI default apps

2017-10-31 Thread Will Mengarini
* Ron OLGIATI  [17-10/31=Tu 19:11 -0300]:
> [...] in Debian, [crontab -e] opened the file with vi [...].
> Now under Devuan, crontab opens the file with nano [...].
> How do I get crontab back to using vi ?

In your <~/.bashrc>:

  export EDITOR=vim
  export VISUAL=vim

Or modify as needed if you're using some other vi than Vim,
or some other shell than Bash.

-- 
 Will Mengarini  
 Free software: the Source will be with you, always.



Another Devuan annoyance: CLI default apps

2017-10-31 Thread Renaud (Ron) OLGIATI
Today for the first times since I upgraded my Debian Wheezy to Devuan Jessie, I 
tried to use crontab; 

in Debian, it opened the file with vi, just as $DEITY had ordered it since the 
beginning of the world.

Now under Devuan, crontab opens the file with nano, which I hate, abominate, 
pursue with intense loathing...

How do I get crontab back to using vi ?
 
Cheers,
 
Ron.
-- 
   Image
 Old houses were scaffolding once,   
   and workmen whistling.
-- T.E. Hulme

   -- http://www.olgiati-in-paraguay.org --