Re: PATH for sudo users

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

 



Gustavo Alves wrote:
> The file /etc/profile only allow /sbin and /usr/sbin paths to uid 0
> user. Unfortunately, other users needs this path, as sys group (refered
> on sudoers, for example). To avoid the inclusion of the path on each
> user, I like to implement some sort of autoconfiguration. As first try,
> I'm allowing the /sbin path to euid 0 and group_id sys and adm. There is
> another way to do this? Fedora should do it?
> 
> Thanks for any advises.

I think all users are getting the /sbin/ paths in F10
which should make this a moot point?

Interestingly on ubuntu user paths are not propagated
by sudo for security reasons (sudo is built --with-secure-path)
I work around this by defining the following alias:
alias sudo='sudo env PATH=$PATH'

Pádraig.

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux