Operating System - HP-UX
1748060 Members
5636 Online
108758 Solutions
New Discussion юеВ

mailx doesn't work without root rights

 
SOLVED
Go to solution
Armin K├╢nig
Occasional Contributor

mailx doesn't work without root rights

when i try to put a
mailx -s
being logged in with a user other than root, the system returns the error message
ksh: syntax error: `-s' unexpected

as i su to superuser rights or log in as the root user it works fine.

can anybody help with this issue?

thanks
armin
4 REPLIES 4
Naveej.K.A
Honored Contributor

Re: mailx doesn't work without root rights

Armin,

Execute

what mailx

and see if any differnce in the output when you execute as root and the normal user??

Regards,
Naveej
practice makes a man perfect!!!
Naveej.K.A
Honored Contributor
Solution

Re: mailx doesn't work without root rights

Sorry Armin,

It should be "which mailx"

Regards,
Naveej
practice makes a man perfect!!!
Armin K├╢nig
Occasional Contributor

Re: mailx doesn't work without root rights

Thanks, Naveej!

Problem resolved.
The paths shown by using the which command are differing --> /usr/bin/mailx (for root) /bin/mailx (for others).

Armin
Armin K├╢nig
Occasional Contributor

Re: mailx doesn't work without root rights

... as stated above.

Armin