CentOS 5 :: Can't Run Administrative Commands / What To Do?
Aug 10, 2010
I have root access on this CentOS 5.5 machine but I am unable to run administrative commands such as service and chkconfig because it says the commands are not found.
Do I need to install additional packages or grant myself privileges that I don't have to run these commands?
I just started setting up a linux box in the office...I have some experience with ssh commands but not setting up a linux system and stuff.The box is connected to our network but I have no clue how to make windows & osx talk with it. How can I go by doing that and also setting up an apache server to be able to connect through network. Right now I have apache/linux/mysql running it works when i go to localhost, but I would also like to let all the computers in office to access it. I would guess that will deal with virtual host which I know how to setup. I just need to setup an IP.
I am trying to determine if I should upgrade PHP's PEAR on my server. I am trying to check the version of PEAR currently installed. I am getting the following error when I use the pear -V command:Warning: realpath(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s)(/usr/share/pear:/usr/share/php) in System.php on line 459I tried adding /tmp to my php.ini file, but then when I use the pear -V command it doesn't do anything. I do not get any errors or anything.I am also trying to install symfony and have the same situation described above when I use the following command: pear cannel-discover pear.symfony-project.comDoes anyone have any thoughts? If not the solution, does anyone have any suggestions on how to begin troubleshooting this?
I have a problem while trying to get rpm fixed I removed it then it removed yum also. I was able to get rpm installed and tried to install yum there was a bunch of depency files i had to install. After that then every command results in Segmentation fault some commands work like pwd does but not ls, rpm, vi and most other ones ive tried. server is still up and running.
Our CentOS 5 server had a weird issue last Friday. We couldn't run any bash commands, such as ls, vi. It said that it could not find /bin/ls. The only commands we can run are internal commands, such as ps, cd. After we reboot the server, everything is back.
I don't know what's wrong with it. Does anyone give me a explanation?
For example, when I want to have an identical line to the above line, I must press "yy" and then P (or p). Could somebody give me the list of such commands.
For some reason, when using this kickstart file the commands in the post section chroot is not executed. I used the ksvalidator to check the syntax and its correct.
Code: # Kickstart file. install cdrom key --skip lang en_US.UTF-8
My focus is on the three WGET commands. The problem is the first one works fine, runs at 4:20 p.m., but the other two never run! If I visit [URL] it works fine but cron never runs it.
In System/Administration/Users and Groups, my user account properties-user privilegies, the Administer the system is checked (only Send and receive fax and Use tape drives are unchecked).But when I try to run the KDE partition manager, it warns me that I don't have administrative privilegies, so I will not be able to apply changes.
I'm running a Counter Strike 1.6 Game server on my centos 5 VPS. I can get it to run by simply switching to the directory, then doing: ./hltv Now, when I do that, it obviously closes when I exit Shell. So I do the following and it gives me errors then. screen -A -m -d -S hltv ./hltv My question is, do I need all of those commands after screen? I just simply want it to not close once I exit Shell.
As a premise let me say I'm a debian guy so I'm not really an expert on every aspect of how Centos work and if the following questioms seem dumb, I'm sorry :D What I have to for a school project is to use Xen. After two days of cursing I've managed to install it correctly and so I've installed a domU Centos 5.5.
Now I need to install sysbench on this domU and run some tests. I've found this guide: [URL].. But I can't find some commands. Basically this is what I have to do
# tar -xvzf sysbench-0.4.12.tar.gz # cd sysbench-0.4.12 # libtoolize --force --copy # ./autogen.sh # ./configure # make # make install
the problem is it doens't find libtoolize. I've tried to search it with 'yum search" but with no luck.Where can I find this package? Or is it a command include in some other package? In that case how can I solve this problem? Next problem is autogen.sh. It says I don't have aclocal but automake in installed as a package.
I have a feeling this may be a bit of a stupid question as it seems like one that must have a very basic answer so for that I apologise but I have yet to come across or work out the solution. The problem I have is that I cannot do anything that requires administrator priviledges from within GNOME without doing it directly from a Terminal using the su command. The reason being is that GNOME will not allow me to log in as 'root' from the normal login screen. So therefore I cannot do something as simple as edit a text file that is not in /home/'my username' as I do not have the required permissions.
I am new to this O/S. I have tried Mint and Ubuntu. There are some problems I would like to work out by myself before I take short-cuts, as if.I have tried to install codecs for my o/s media player and get a reply from computer "xxxx does not have sudoer rights, you will be reported."I tried to get sudoer rights and was told I had to have administrator rights first. To get administrator rights I needed sudoer rights. I decided to come to forums to ask and this is my first post.
Is there a danger in getting administrative rights? If so, I would still rather like to face the danger than not be able to play music. And how do I get real superuser rights? My root account is localhost.localdomain and my login account is XXXX. I would have access to everything rather than have a warning that the administration is receiving reports of my activity. Might anyone have help?
my dvd-rw was not working. but i had to install linux. so i installed ubuntu from the iso using demons tool. But when i am opening the terminal to create an user,it's prompting that only root have the permission to create an user. i am trying to use "su" command but it's showing that authentication failed. How can i become the root?
while using my pen-drive in fedora 14, a small dialog box appeared and before I could read it,it disappeared. It worked normally till I turned the computer down. Next time I used Windows XP. There were no files in the pen-drive but it still showed 5 GB used ( the same amount of data was there previously ). I restarted and switched to Linux. All my data was in a single folder named 'Found.000' . It showed nearly 400 objects , renamed as 'file0001.CHK'. They were all mine, merged in a single folder. I am helpless because I can not delete them (as I need them). I can get administrative privileges.
I've had a server setup working perfectly for the last 2 years. Today we installed a newer version of postgresql and recompiled apache/php.
Postgresql will not start now.
"service postgresql start" = /var/lib/pgsql/data is missing. Use "service postgresql initdb" to initialize the cluster first. To initdb we need to be as user postgres.
"su - postgres" = "no file or directory"
In /etc/passwd = postgres:x:26:26:PostgreSQL Server:/var/lib/pgsql:/bin/bash
how i can login as postgres user and enter these commands?
Over the past few days, I've noticed that administrative tasks sometimes fail to start. I'm asked to enter the administrative password, "Granting rights" appears in the bottom panel for a few seconds, but then disappears. I'm using Debian Lenny. This is only an intermittent problem, and if a task does fail to start, it will start on the next attempt. Tasks which have failed to start are:
*Launching Synaptic form the System menu. *Launching a root terminal from the Applications menu. *Launching Nautilus with root privileges from a terminal using gksu.
After coming across the following post, I thought maybe it was an issue with kernel 2.6.32-bpo.5-686, because I'd recently upgraded to that kernel too, but I'm advised that that isn't so.It was suggested that something else from backports might be causing the problem.
I found a similar problem. The poster used a similar title "Administrative tools fail to open - karmic" I also have karmic and four tools fail to load; Ubuntu Software Center, Hardware Drivers, System Testing, and Update Manger. Synaptic and System Monitor run. I ran update-manager and software-manger and was told module pygtk does not exist. I ran "sudo apt-get install pygtk" and it said that did not exist as a package. The terminal update and upgrade also work.
Code: me@me-laptop:~$ update-manager Traceback (most recent call last): File "/usr/bin/update-manager", line 26, in <module> import pygtk ImportError: No module named pygtk me@me-laptop:~$ software-center
[Code]...
Would the best solution be to reinstall the OS from fresh downloads as at least the Hardware Drivers tool works with the live USB?
How to fix the problem that is happening with gksu. It prompts me for the administrative password. I don't (for advised security reasons) have a password associated with the root account.
The sudo works fine and accepts my sudo password. Gksu fails with "incorect password... try again." error.
This is a new install of the Ubuntu Server 10.10 x64 Maverick edition.
So... this computer was given to me with ubuntu and libre office already on it (along with 125 other apps I know nothing about). I cannot watch or listen to any media. I cannot install adobe or any other program. I cannot upgrade to 11.04. I cannot get administrative access. I can't do anything. Everything comes up as an error.
Not too long ago I upgraded to 10.10 and after doing so, many of my Administrative GUI apps wouldn't work properly. For example, I can open the Update Manager, it will display all of the available updates but when I click "Install", the button "clicks" but nothing happens. The same behavior is displayed when trying to use the GUI to add a new user. I click the "Add" button but nothing happens. Similarly, if I try to change my graphics driver to the old version (not that I would necessarily want to) it tells me I don't have permission to do so. And Lastly, if I try to enable Visual Effects I get an error message saying that my graphics card does not support them.
All of this worked just fine in 10.04. And I'm not sure where something went wrong. I realized I can use gksudo for any of these applications and they work fine, however this is not really a solution for me because any time I log off, or restart, I would need to re-execute the commands to enable compiz and all that, and honestly, that's not how I want my box to work.
I thought maybe I had lost admin privileges, but I checked and I am in the "admin" group. I thought maybe somehow root took ownership of some of my configuration settings in my /home/<user> so I:
I am a student at DeVry University, newly introduced to Fedora and Linux in general, and have a project whereby, we have been asked to consider some administrative tasks that we could automate via a script.I was wondering if there were any thoughts or directives from the community on what admin tasks you guys find to be of inestimable use in automating via a Linux script.
I am new to the Linux commands but have done a wee bit of programming before in C++ and others.I have also done basic DOS batch files before.
I am a new Linux user and have a question about the administrative authentication. When I am logged in as a user and I need to do something that requires root privileges the little password window comes up and I enter the root password. My question is how long are the root privileges granted for?I noticed that a few minutes after finishing checking out the firewall configuration tool and closing the window that I was still able to re-enter the fire wall tool and other administrative tools. How do I log out of the root privileges without logging out and then back into my account?
I find myself using SSH from my mobile phone to manage administrative tasks when I'm away--completing updates and the like, things that can be done during normal usage but sap my RAM and CPU to the point of frustration, given the hardware I've got to work with. It's convenient, I can do what I wish (without the benefit of an X session) while I'm at work. The issue I run into is the fact that my auth.log is littered with items like this:
Code: May 16 12:53:17 BETA sshd[18941]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=200.111.184.180 May 16 12:53:19 BETA sshd[18941]: Failed password for invalid user lala from 200.111.184.180 port 41787 ssh2 May 16 12:53:25 BETA sshd[18943]: Invalid user master from 200.111.184.180
Which tells me that some inconspicuous person and/or botnet keeps trying to get into my system. This is generally annoying; at this point, my system isn't used for anything particularly critical; however, the fact that only failures or questionable successes--such as those from my mobile, the IP and Host of which can vary a fair bit (and the host resolution almost always fails, based on the way the IP/Host advertisement is presented to an external host is established--it's essentially manufactured)--doesn't tell me who/what has figured it out. I've done what I can to tamp down SSH access to the system, root is blocked via SSH (a moot item, since root isn't allowed locally), I've limited only my own username as allowed to connect via SSH...all it would take, though, is an alphanumeric dictionary that hits the right combination to get a password prompt, and to be able to brute-force it from there.
Overall, I know there's few, if any ways, to prevent someone attempting to get into my system via SSH; what additional steps can I take to minimize the possibility that I might end up compromised?
I am currently using Xubuntu version 11.04 and I am working with a Radeon HD 4850 graphics card. I am using the proprietary FGLRX drivers from AMD.
I have a small problem. I have two monitors, and in order to tell the computer to use the extra monitor for extra desk space, I have to get into the Administrative CCC. However, when I click on the administrative CCC, nothing happens. It's strange considering that the regular CCC works just fine.