Re: why "permission error" if i'm not trying to change alternatives?

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

 



On 14Jul2009 04:55, Robert P. J. Day <rpjday@xxxxxxxxxxxxxx> wrote:
|   just checking the java setup on my f11 system so -- as a non-root
| user -- i run the following and get:
| 
| $ /usr/sbin/alternatives --config java
| 
| There are 2 programs which provide 'java'.
| 
|   Selection    Command
| -----------------------------------------------
| *+ 1           /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
|    2           /usr/lib/jvm/jre-1.5.0-gcj/bin/java
| 
| Enter to keep the current selection[+], or type selection number: <ENTER>
| failed to create /var/lib/alternatives/java.new: Permission denied
| $
| 
|   i had no intention of changing the java setup, which is why i
| pressed <ENTER>, but i got a "Permission denied" error anyway.  why?
| if i choose to *not* modify my alternatives setup, what's happening
| underneath that i don't have permission to do?  that just seems odd.

It looks to me like it always applies your choice, even if the choice is
the same as the current setting. And thus the permission issue, because
it's trying to do stuff anyway.

There's a (weak) argument for working this way, in that it lets you
"recover" a mangled setup if you have one. But personally I prefer to
require a special flag for such operation (eg --force).

Cheers,
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

If it can't be turned off, it's not a feature. - Karl Heuer

-- 
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