MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have used redhat exclusively on my home machine for some years now. I just bought a dell inspiron 5100 and decided to try mandrake on it. 10-beta to be precise. It works great, but I'm a little confused about file permissions on mandrake.
On redhat I am used to going into a shell, typing commands etc. But on mdk it seems almost all directories are set execute only, meaning I can cd into them if I know where they are and execute files in them as usual, but they don't show up in ls and their contents isn't shown by locate.
Presumably there is a sound security reason for this, but it causes problems for me. I find that I can't run java unless root-the VM crashes at startup every time (when I think about it, this is probably the reason my java plugin crashes mozilla, too)
Could anyone perhaps explain the differences for me, and tell me how to set permissions so that java works?
ps. I have searched the forums, and it seems many people have had problems with the java plugin on mandrake. One poster said the problem was permission-based, but I couldn't translate that into a solution. changing the permissions of the plugin didn't cut it.)
The permissions thing with slocate may just be a database issue. I know this sounds simple, but did you run updatedb (as root) before you tried to locate something? One thing I have noticed about Mandrake is that any commands intended to be run as root are "not found" as a user. You have to "su" to root to get at them (like updatedb).
If you're having a java problem, perhaps you need merely to add it to your PATH. Here's a recommendation I have followed (from a Redhat mailing list, I believe) that has worked for me:
If your java is in a different path type that in (but that's where they put it when I istalled their rpm). By the way, I decided to try their 1.5. beta and it runs fine. The plugin crashing may be caused by linking to the wrong one. Did you link to the one that was compiled with gcc3.x?
If you installed the Sun java as per their instructions, you would have found it in the same place as on Red Hat /usr/java/<java version>/bin/java . If it got installed there, I don't see why it won't work. Can you get it to run as root?
Yup,it runs fine as root. One significant difference between RH and MDK regarding the path you mentioned is that on mdk10beta at least, the direcories /usr and / have only execute permissions, contra read and execute on redhat. I thought I'd changed that, but it seems I haven't... either that or it's one of those settings that seem to mystically revert on this particular install :-)
I'll try changing the permissions to read-execute. I can't for the life of me see what the security risk in that would be, as we know what the directory structure looks like, setting execute and not read seems like security through obscurity to me.
If you run mandrake, I would like to know if your permissions are the same there (execute, no read).
As user I can read almost everything on my drive. Certain things I cannot read, like /etc/lilo.conf and some stuff in /proc but for the most part, I have read permissions for everything (not /root or a user's protected file on the old XP partition). When you installed, what security setting did you use? Perhaps if you opened up Mandrake Control Center and took a look at that, you might see that its set to "paraniod" or something to the effect.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.