Visualizzazione dei risultati da 1 a 3 su 3
  1. #1
    Utente bannato
    Registrato dal
    Feb 2003
    Messaggi
    211

    eseguire file da utente anziche' da root

    ciao a tutti...
    ho un file in /usr/sbin cosi' impostato:

    -rwxr-xr-x 1 root bin

    che vorrei poter eseguire da utente anziche' da root
    finora ho provato cosi':
    - aggiunto utente a gruppo bin
    - modificato proprietario file da root a utente
    entrambi senza successo...
    se eseguo il file da utente l'output e' questo:

    ERROR: You must be root to run the command,
    ERROR: or the root must set the suid bit for the executable.

    Sapete aiutarmi ? thx

  2. #2

    Re: eseguire file da utente anziche' da root

    Originariamente inviato da nesquik
    ciao a tutti...
    ho un file in /usr/sbin cosi' impostato:

    -rwxr-xr-x 1 root bin

    che vorrei poter eseguire da utente anziche' da root
    finora ho provato cosi':
    - aggiunto utente a gruppo bin
    - modificato proprietario file da root a utente
    entrambi senza successo...
    se eseguo il file da utente l'output e' questo:

    ERROR: You must be root to run the command,
    ERROR: or the root must set the suid bit for the executable.

    Sapete aiutarmi ? thx
    ripristina i permessi originari, aggiungi l'utente incriminato al gruppo bin, quindi esegui
    codice:
    # chown 4750 /usr/sbin/iltuoeseguibile
    dovrebbe funzionare.

    Alternativa, migliore ma piu` lunga: configurare sudo.
    "Qualsiasi esperto ha paura di combattere usando la katana vera. Anch'io. Ma non ignoro la mia paura, riesco ad accettarla, e a metterla da parte accanto a me".

  3. #3
    Utente bannato
    Registrato dal
    Feb 2003
    Messaggi
    211
    ho provato con chmod 4750 ma mi dice comunque

    permision denied

    cosi' ho aggiunto il file all'utente in /etc/sudoers..

    ora tutto ok

    grazie

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.