OVH Cloud OVH Cloud

Utilisation de la commande su

12 réponses
Avatar
Sebastien
Bonjour, je cherche à relancer cups en tant que simple utilisateur.
J'utilise la commande suivante :

su -c "/etc/init.d/cups restart" < mdp.pw

le fichier mdp.pw contient le mot de passe de root. (biensur il n'est
lisible que par root et l'utilisateur qui dois lancer la commande )

Mais j'ai le message suivant : standard in must be a tty

Une solution ?

Merci

2 réponses

1 2
Avatar
Emmanuel Fleury
Luc Habert wrote:

Oui, unix, c'est beaucoup trop featuré, retournons sous dos.


Fixing Unix is easier than living with NT.
-- Jonathan Gilpin

--
Emmanuel Fleury

I am not young enough to know everything.
-- Oscar Wilde

Avatar
lhabert
Emmanuel Fleury :

Fixing Unix is easier than living with NT.
-- Jonathan Gilpin


Tu essayes de dire quelque chose?
-- Luc Habert, 17/02/2006

1 2