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 am all confused about the root stuff, I have only one account and I think it's an administrator account, but when I try to do anything in /usr folder I got access denied
Type the ls -l /user
It will print the permissions of the directoy, who the owner is and which group it belongs to. That should give you some guidelines who the directory belongs to.
To find out who you are e.g. who are logged in as type in whoami
When I typed who nothing appeared, then when I typed su (I dont have a password) I get [root@localhost JunZ]# but I still get access denied in /usr
Eh, are you saying you don't know the root password, or that you never set a root password? If you don't know it, then you're somewhat screwed [you usually set the root password during installation], although i'm sure there's a way to reset the password, but i don't know how and i seriously doubt it's that easy.
Alternately if your root password is simply not set [or blank] then usually i'd do the following:
type "su root passwd" . Then it'll ask for a password, type the password you want for root. Then you can login as root using that password [by typing su etc].
There is a graphical way to log in as root too, but you still need the root password for that.
The general way to do that is to edit the Login settings [which you'll find under "Configure you desktop" menu]. You will need the root password to edit that too, but if you somehow can edit that, then maybe you can try editing the tab where it shows you the users on the system. By default it autologs a non-root user into the system, you can set that so you can pick a user to login at startup instead. Then you can simply go "Log out" and "End this Session only" and then login as root via the graphical thing. Although i don't think it's the 'ideal' way, but at least you'll be in a graphical interface as root and can then open up a filebrowser and right click on a folder and edit the permissions/owner on the file. [which is much easier than figuring out how chmod and certain console commands work].
Above method is almost exactly like you would do it in Windows XP/2000.
--and can then open up a filebrowser and right click on a folder and edit the permissions/owner on the file. [which is much easier than figuring out how chmod and certain console commands work]
diabolus, sorry but I disagree on that if you spend half a minute to figure out chmod, chown and chgrp, through manpages for example, then from that moment on your every permissions-job is done much much much faster than before - and it truly isn't difficult. or to make it simple: if you have a directory called Directoryname and want to change it's owner and permissions, it's much faster to type
chown newuser Direc<now press tab to complete the name>
chmod 644 Direc<press tab to complete the name>
than open up a filebrowser (takes time), locate the file among many others, right-click it, wait a moment, click few boxes and so on. learning the meaning of 644 above and the other permission-numbering-system is quite simple, and once you've learnt it, you'll never again say it's difficult
ok, a bit offtopic, but....
EDIT: and one more thing. whoami tells your login as was said, and w tells who are around....but simple w gives a bit more information about the users around then just who, so try it. quite a simple command, just one letter
I'm just a bit confused about the su-login-stuff that didn't need a password...it means that root password is not set or empty, as was said, but what is odd is that root wouldn't have permissions to some directory? huh? the only thing I can imagine of that is, that somehow the read/write permissions of the directory have _all_ been removed so that it's unusable for anyone. that's easily fixed, though, with
chmod u+rw /usr
and then, if you're root, read and write permissions for root for that directory should be set.
Yes of course if you got the hang of the console it's going to be faster and probably easier.
I just mentioned the graphical method because it's what us windows people are use to. From the original post i deduced the one asking for help is somewhat new and throwing console commands at someone who doesn't even seem sure about what root is, is somewhat dodgy.
well, if you put it like that, yes. anyway, even beginners learn and they do it quickly after all, so it's no harm to start using console in the beginning..but of course after windoze it's somekind of a jump to sit before a linux console, especially if one hasn't used DOS before to get anykind of grip of the thing
still, it's quite a nice thing I think, that people start using linux more easily than before..some years back I didn't know too many who would have started using linux without somekind of course or teacher; now these "newbies" install a distro and come here to ask how it works...great and damn, again I've run off the topic...sorry.
You don't need console to edit settings as root.
Press alt + f2, type "kdesu konqueror".
If you set "no password" during the installation, the konqueror will just open and you will be able to use it as root.
Although i must admit is much easier to tell someone to type a few console commands than to try and describe where he must click and what menuitem to select and what box to edit.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.