Re: service network restart won't run via su

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: James Kosin <jkosin@xxxxxxxxxxxxxxxxxx>
> To: "Community assistance, encouragement, and advice for using Fedora." <fedora-list@xxxxxxxxxx>
> Date: Mon, 15 Dec 2008 11:46:07 -0500
> Subject: Re: service network restart won't run via su
> 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.

Nope, that's not the issue.  The problem is SeLinux.  I have tried
su, su -, and logging on a console screen as root - same problem.
If I turn off selinux (setenforce 0), I can run /sbin/service network restart
and it runs fine.  If I turn SeLinux back on, it fails again.  Seems like a
messed up SeLinux policy.

Any hints on how to verify and/or fix?
--
Wade Hampton

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux