No sudoers in /etc

Hi,

I try to add some thigs in etc/sudoers but I don’t have that file in my tumbleweed.
Do you know why, or if in openSUSE we have another file for that?
I 'm looking for that kind of things ;
ie user ALL=(ALL) NOPASSWD: ALL

thanks

/usr/etc/sudoers

If you are not used to commandline, you can use YaST Software for file search. Simply set the search filter to file.

1 Like

that one is empty

@james80 Correct, it moved sometime ago out of /etc/ to /usr/etc/ on purpose as where you as the admin get to create your own and not over written by system files.

For example I have the following file to access /usr/bin/build as my user.

ls /etc/sudoers.d/
01-build

Ok, I vented my frustration. Forget it.

I have that to add ; james ALL= NOPASSWD:/usr/bin/rsync

Is the YaST → Security and Users → Sudo module no longer available in Tumbleweed? That would allow configuration without any need to know where it goes.

@james80 so then create a /etc/sudoers.d/01-rsync containing;
james ALL = NOPASSWD: /usr/bin/rsync

1 Like

It is available. One only needs to install the package yast2-sudo

thanks it is working
and I added a log in var/log but the file still empty after the cronjob , the job has worked but empty log, idea?

I’ve installed rsyslog … but still nothing in the log

@james80 Use a systemd service/timer and specify a log you wish to direct it to…

1 Like

ok but I prefer cron cause service/timer does not work all the time and dont know why