It is currently Wed Sep 18, 2019 1:33 pm
All times are UTC + 8 hours

How to update de /etc/sudoers file?

Share your awesome tips and tricks here.

How to update de /etc/sudoers file?

Postby juanheredia » Wed May 22, 2019 6:37 pm

Hi, I need to modify the /etc/sudoers with some config, but all changes are lost after reboot.
Is there a way to keep it permanent?

Thanks in advance.
juanheredia
 
Posts: 2
Joined: Wed May 22, 2019 3:13 pm

Re: How to update de /etc/sudoers file?

Postby father.mande » Thu May 23, 2019 12:41 am

Hi,
juanheredia wrote:Hi, I need to modify the /etc/sudoers with some config, but all changes are lost after reboot.
Is there a way to keep it permanent?
Thanks in advance.


Search forum, they are some explain on how-to run your own script at boot like this one : viewtopic.php?f=49&t=1681&start=20#p2381
BUT search for other solutions and examples ...
You can also create a fake apkg (using the tool provide by Asustor) if you want to have more options.

I will suggest you to don't change sudoers file itself but (like I do in myHD apkg) to add your own file in /etc/sudoers.d/ ... so you can dynamically change it and don't have risk to break the original and lost some things and solve problem if another apkg or Asustor program change back your own modification is /etc/sudoers file.

Philippe.
AS5002T / AS202TE / AS1002T
My Blog specific to my APKG : https://blog.father-mande.ovh/
User avatar
father.mande
 
Posts: 775
Joined: Sat Sep 12, 2015 2:55 am

Re: How to update de /etc/sudoers file?

Postby juanheredia » Fri May 24, 2019 3:19 am

Thanks for you advise, I'll try it.
juanheredia
 
Posts: 2
Joined: Wed May 22, 2019 3:13 pm

Return to Tips & Tricks

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 2 guests