[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to run automatically a script as soon root login




Istantanea_2024-05-13_17-37-39.png

Can someone explain to me why user "marietto" can't execute the command iptables as root,without password ? thanks.

Istantanea_2024-05-13_17-40-21.png

On Mon, May 13, 2024 at 5:19 PM Mario Marietto <marietto2008@gmail.com> wrote:
There is still a problem. If I login automatically as user and inside the script I do this :

sudo iptables -A POSTROUTING -t nat -s 192.168.1.5 -j MASQUERADE

it asks me for the password (don't know why it didn't before) but I can't issue a password,because the script inside the vm should work automatically and should be hidden between the FreeBSD processes.

On Mon, May 13, 2024 at 4:11 PM Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> You don't need to, but I definitely think he does. 🙂
                                            ^^

[ Oh, bias, when will you leave me alone?  ]


        Stefan



--
Mario.


--
Mario.

Reply to: