Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problème de droits pour executer certaines actions #26

Open
glt248 opened this issue Oct 20, 2022 · 0 comments
Open

Problème de droits pour executer certaines actions #26

glt248 opened this issue Oct 20, 2022 · 0 comments

Comments

@glt248
Copy link

glt248 commented Oct 20, 2022

Describe the bug

Problème de droit sur installation fraîche. Après le premier lancement, en cliquant sur Réglages/Préférences le message suivant apparait :

Erreur sur sudo ls /var/lib/php/sessions 2>&1 valeur retournée : 1. Détails : We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper sudo: a password is required

J'ai d'abord observé cette erreur en voulant utiliser le plugin jeedouino, j'ai bricolé quelques trucs qui n'ont pas marchés. Puis refait une installation propre avant de faire ce rapport.
Par contre, lorsque je lancais les scripts demandés par le plugin via ssh avec sudo, cela fonctionnait. D'où la piste des problèmes de droits.

Context

  • Hardware: * Old laptop*
  • L'architecture du serveur est bare-metal i386
  • Le serveur utilise le noyau Linux 5.10.0-19-686-pae
  • Le serveur utilise Debian 11.5
  • Le serveur utilise YunoHost 11.0.10.1 (stable)
  • I have access to my server: Through SSH | through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: jeedom V 4.1.19

Steps to reproduce

  • If the error occurs in your browser, explain what you did:
    1. Go to 'Réglages'
    2. Click on 'Préférences'
    3. See error in a red box

Expected behavior

Be able to do actions...

Logs

cat /etc/group

root:x:0:benoit daemon:x:1: bin:x:2: sys:x:3: adm:x:4: tty:x:5:www-data,jeedom disk:x:6: lp:x:7: mail:x:8: news:x:9: uucp:x:10: man:x:12: proxy:x:13: kmem:x:15: dialout:x:20:www-data,jardin,capucine,admin,jeedom fax:x:21: voice:x:22: cdrom:x:24:benoit floppy:x:25:benoit tape:x:26: sudo:x:27:benoit,jeedom audio:x:29:pulse,benoit dip:x:30:benoit www-data:x:33: backup:x:34: operator:x:37: list:x:38: irc:x:39: src:x:40: gnats:x:41: shadow:x:42: utmp:x:43: video:x:44:benoit sasl:x:45: plugdev:x:46:benoit staff:x:50: games:x:60: users:x:100: nogroup:x:65534: systemd-journal:x:101: systemd-timesync:x:102: systemd-network:x:103: systemd-resolve:x:104: input:x:105: kvm:x:106: render:x:107: crontab:x:108: netdev:x:109:benoit messagebus:x:110: bluetooth:x:111:benoit ssl-cert:x:112:metronome,openldap avahi-autoipd:x:113: rtkit:x:114: ssh:x:115: lpadmin:x:116:benoit scanner:x:117:saned,benoit pulse:x:118: pulse-access:x:119: avahi:x:120: saned:x:121: colord:x:122: lightdm:x:123: benoit:x:1000: systemd-coredump:x:999: mysql:x:124: openldap:x:125: nslcd:x:126: unscd:x:127: postfix:x:128: postdrop:x:129: capucine:x:1001: policyd-spf:x:130: dovecot:x:131: dovenull:x:132: _rspamd:x:133: postsrsd:x:134: redis:x:135: metronome:x:136: mdns:x:998: ntp:x:137: ssh.app:x:1002: sftp.app:x:1003: geoclue:x:138: jeedom:x:997:

sudo visudo

`

This file MUST be edited with the 'visudo' command as root.

Please consider adding local content in /etc/sudoers.d/ instead of

directly modifying this file.

See the man page for details on how to write a sudoers file.

Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:>

Host alias specification

User alias specification

Cmnd alias specification

User privilege specification

root ALL=(ALL:ALL) ALL

Allow members of group sudo to execute any command

%sudo ALL=(ALL:ALL) ALL

See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d
www-data ALL=(ALL) NOPASSWD: ALL
`

Je serais heureux de participer à l'amélioration de la prise en charge de ce plugins sur yunohost. (Simplifier la vie des paysan.es en automatisant quelques tâches est d'un grand intérêt pour moi)

Merci d'avance.

@alexAubin alexAubin mentioned this issue Apr 22, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant