service network restart won't run via su
James Kosin
jkosin at beta.intcomgrp.com
Mon Dec 15 16:46:07 UTC 2008
Wade Hampton wrote:
> I upgraded a laptop from F8 to F9 and now have an issue....
> If I log in as a normal use, open an xterm, then type su,
> I used to be able to run /sbin/service network restart....
> Now it fails:
> # /sbin/service network restart
> env: /etc/init.d/network: Permission denied
>
> I tried calling it directly:
> # /etc/init.d/network status
> bash: /etc/init.d/network: /bin/bash: bad interpreter: Permission denied
>
> However, I can still run it as:
> /bin/bash /etc/init.d/network status
>
> Any ideas?
> --
> Wade Hampton
>
Wade,
I believe this may be because you didn't use the 'su -' command.
The '-' tells su to import the users profile properties as well.
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20081215/a43de02a/attachment-0001.sig>
More information about the fedora-list
mailing list