Permission denied for root!?
Hey yall--
Something very odd seems to be happening with my file system, such that I am unable to write to certain directories as root. I don't know exactly when this started, but it has to have been within the last month or so--roughly coinciding with when I upgraded to kernel 2.6.15 (or possibly 2.6.14).
Here's some background info:
Some lines from /etc/fstab:
/dev/hda3 / ext2 defaults 0 1
/dev/hda11 /usr reiserfs defaults 0 0
/dev/hda6 /opt reiserfs defaults 0 0
/dev/hda8 /.devel reiserfs defaults 0 0
Output of 'ls -ld' on various directories:
drwxr-xr-x 26 root root 1024 2006-02-19 23:38 /
drwxr-xr-x 89 root root 2352 2006-02-19 23:39 /opt
drwxr-xr-x 40 root root 1128 2006-02-19 23:40 /opt/usr.local
lrwxrwxrwx 1 root root 15 2005-11-08 13:54 /usr/local -> /opt/usr.local/
drwxr-xr-x 2 root root 17192 2006-01-24 14:25 /opt/usr.local/bin
drwxr-xr-x 8 root root 184 2006-02-19 23:40 /.devel
drwxr-xr-x 15 root root 576 2006-02-19 23:46 /.devel/src
drwxr-xr-x 52 root staff 2664 2006-02-19 23:41 /.devel/local.src
lrwxrwxrwx 1 root root 12 2005-11-08 14:00 /usr/src -> /.devel/src/
lrwxrwxrwx 1 root staff 17 2002-08-04 15:36 /usr/local/src -> /.devel/local.src
Yes, my partitioning scheme is a little weird. But it has evolved over several years of trial and error, and it has worked well for me until now. Anyway, here's what happens:
[root@swordfish ~]# mkdir /x
[root@swordfish ~]# rmdir /x
[root@swordfish ~]# mkdir /opt/x
[root@swordfish ~]# rmdir /opt/x
[root@swordfish ~]# mkdir /opt/usr.local/x
[root@swordfish ~]# rmdir /opt/usr.local/x
rmdir: `/opt/usr.local/x': Operation not permitted
[root@swordfish ~]# mkdir /opt/usr.local/bin/x
mkdir: cannot create directory `/opt/usr.local/bin/x': Permission denied
[root@swordfish ~]# mkdir /usr/local/y
[root@swordfish ~]# rmdir /usr/local/y
rmdir: `/usr/local/y': Operation not permitted
[root@swordfish ~]# mkdir /.devel/x
[root@swordfish ~]# rmdir /.devel/x
[root@swordfish ~]# mkdir /.devel/local.src/x
[root@swordfish ~]# rmdir /.devel/local.src/x
[root@swordfish ~]# mkdir /usr/local/src/x
[root@swordfish ~]# rmdir /usr/local/src/x
[root@swordfish ~]# mkdir /.devel/src/x
[root@swordfish ~]# rmdir /.devel/src/x
[root@swordfish ~]# mkdir /usr/src/x
[root@swordfish ~]# rmdir /usr/src/x
So, like, WTF??
I have Googled for some clues on this (though it's a bit hard to figure out good search terms); I did find one or two hits that seemed relevant, but the respondents suggested running fsck on the affected partition. I've done that and found no errors.
So, what else? Something in my UDev configuration, maybe?
I had a problem like that a week or two ago on a reiser partition, though after running fsck.reiserfs it did find errors & fixed them
But before using them make sure you back up
HTH
Similar Messages
-
Why am I getting these errors Error: Permission denied for (document.domain has not been set) to call method Location.toString on (document.domain=).
== URL of affected sites ==
http://HOW DO YOU SET THIS??? I'M FRUSTRATED OVER THIS. ITS BEEN 2 MONTHS SINCE I HAVE BEEN ABLE TO PLAY ANY GAMES IN FACEBOOK DUE TO THIS PROBLEM! IT DOES NOT MATTER WHAT BROWSER I USE I STILL GET THIS SAME MESSAGE.
-
I get this error msg - Permission denied for to webpage get property XPCComponents.classes
A couple of days ago I started geting the error msg -Permission denied for to <webpage> get property XPCComponents.classes. It happens with every webpage I visit. If I hit the x in the upper righthand corner I can then access the page. This doesn't have in IE. Any ideas how I could fix this and why it started happening?
Try the Firefox SafeMode to see how it works there. <br />
''A troubleshooting mode, which disables most Add-ons.'' <br />
''(If you're not using it, switch to the Default Theme.)''
* You can open the Firefox 4.0+ SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
* Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
''Don't select anything right now, just use "Continue in SafeMode."''
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
'''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''
If you look in the Error Console for that '''XPCComponents.classes''' error, there should be a '''Source file: chrome://''' address which might give us information related to which extension is causing that message.
Firefox button > Web Developer -> Error Console or just use {Ctrl + Shft + J} from the keyboard -
DNS permission denied for vpn clients?
I have an x-serve setup to allow a client access remotely to a local network via VPN. I'm currently having an issue with the DNS server however, which is not allowing me to do lookups when connected via the VPN:
client 10.0.0.130#59551: view com.apple.ServerAdmin.DNS.public: error sending response: permission denied
The DNS server resolves perfectly fine for physical machines on the local network.Have you added the range of VPN-assigned addresses to the list of clients the DNS server will respond to?
Server Admin -> (server) -> DNS -> Settings -> Accept recursive queries from the following networks
This will have to include the VPN client address range in order for the DNS server to respond to their queries. -
Help!!getting Connection Exception &permission denied for my local system
Hi,
I am getting this connect Exception when i am running my RMI program.It is not comming when i am running all the programs[server,client] in my local system.
When i put the server program in the server which is linux server and i am calling it from my local system its giving ConnectException permission denied to 127.0.0.1,no more further infoemation.
These are the programs..
server :
import java.net.*;
import java.rmi.*;
public class AddServer
public static void main(String args[])
try
AddServerImpl addServerImpl=new AddServerImpl();
Naming.rebind("AddServer",addServerImpl);
catch(Exception e)
System.out.println("Exception :"+e);
Implement:
import java.rmi.*;
import java.rmi.server.*;
public class AddServerImpl extends UnicastRemoteObject
implements AddServerIntf
public AddServerImpl()throws RemoteException
public double add(double d1,double d2)throws RemoteException
return d1+d2;
Interface:
import java.rmi.*;
public interface AddServerIntf extends Remote
double add(double d1,double d2)throws RemoteException;
Client Program :
import java.rmi.*;
import java.rmi.registry.*;
public class AddClient
public static void main(String args[])
try
// String addServerURL="rmi://"+args[0]+"/AddServer";
Registry r=LocateRegistry.getRegistry("rmi://"+args[0]);
//AddServerIntf addServerIntf=(AddServerIntf)Naming.lookup(addServerURL);
AddServerIntf addServerIntf=(AddServerIntf)r.lookup("AddServer");
System.out.println("The firsrt number is"+args[1]);
double d1 =Double.valueOf(args[1]).doubleValue();
System.out.println("The second number is:"+args[2]);
double d2=Double.valueOf(args[2]).doubleValue();
System.out.println("The sum is:"+addServerIntf.add(d1,d2));
catch(Exception e){
System.out.println("Exception:"+e);
Plese go thru it and tell what modifications that i have to do with it...
regards,
j.mouliYou can specify a policy file and grant the following pemission in it:
grant {
permission java.net.SocketPermission "*:1024-65535","accept, connect, listen, resolve";
Specify this policy file using "-Djava.security.policy=your policy file".
BTW, don't forget to run rmiregistry before you launch your own RMI application.
Good luck!
Justine -
[SOLVED] Thunar permission denied for all partitions excpt arch
Continuing conversion from other thread: https://bbs.archlinux.org/viewtopic.php?id=128639
I made comments #14, #17, #19, & #22 in that thread that are relevant here.
rene wrote:Earlier you said that you DID need to restore the .pacsave files to have things working, whereas you now say differently so I'll refrain from further comment. If you still have problems after removing all the .pkla files and after replacing SLiM with LXDM you have a different problem than the ConsoleKit one, which IS likely the only problem the thread-starter and the others in this thread are having. We should therefore get out of here so that they can get their problem fixed without this thread wandering off into all sorts of directions.
That is true, but a subsequent update broke it.
Here are the updates I made on 11/05 {I might not have logged out/logged in or rebooted after installing the updates on 11/05 before posting to the thread above on that date - or possibly I was in another OS when I posted my first comment on 11/05 in the thread above}
AM M-05-11 2011 05:37:10DT autoconf
AM M-05-11 2011 05:37:10DT automake
AM M-05-11 2011 05:37:10DT bash
AM M-05-11 2011 05:37:11DT ca-certificates
AM M-05-11 2011 05:37:13DT curl
AM M-05-11 2011 05:37:10DT findutils
AM M-05-11 2011 05:37:10DT gawk
AM M-05-11 2011 05:37:13DT gedit
AM M-05-11 2011 05:37:14DT gettext
PM M-05-11 2011 08:45:59DT gksu
AM M-05-11 2011 05:37:14DT grep
AM M-05-11 2011 05:37:13DT gtksourceview3
AM M-05-11 2011 05:37:14DT gzip
PM M-05-11 2011 07:53:20DT intltool
AM M-05-11 2011 05:37:14DT less
AM M-05-11 2011 05:37:15DT lib32-glib2
AM M-05-11 2011 05:37:15DT lib32-libdrm
AM M-05-11 2011 05:37:15DT lib32-libffi
AM M-05-11 2011 05:37:15DT lib32-readline
AM M-05-11 2011 05:37:15DT libdrm
PM M-05-11 2011 07:53:20DT libfm
PM M-05-11 2011 08:45:59DT libgksu
PM M-05-11 2011 08:45:59DT libgtop
AM M-05-11 2011 05:37:15DT libusb
AM M-05-11 2011 05:37:15DT libva
AM M-05-11 2011 05:37:16DT linux-firmware
PM M-05-11 2011 07:53:21DT lxmenu-data
AM M-05-11 2011 05:37:10DT m4
PM M-05-11 2011 07:53:20DT menu-cache
AM M-05-11 2011 05:37:14DT ncurses
AM M-05-11 2011 05:37:16DT patch
AM M-05-11 2011 05:37:16DT pciutils
AM M-05-11 2011 05:37:16DT pkg-config
AM M-05-11 2011 05:37:16DT prelink
AM M-05-11 2011 05:37:10DT sed
AM M-05-11 2011 05:37:16DT sqlite3
AM M-05-11 2011 05:37:16DT tar
AM M-05-11 2011 05:37:17DT thunar
AM M-05-11 2011 05:37:18DT tzdata
AM M-05-11 2011 05:37:18DT which
AM M-05-11 2011 05:37:18DT xfce4-session
Here are the updates I made on 11/06 & 11/07
PM M-06-11 2011 09:57:51ST bison
PM M-07-11 2011 09:31:54ST cryptsetup
PM M-06-11 2011 09:57:51ST db
PM M-06-11 2011 09:57:51ST dialog
PM M-06-11 2011 09:57:51ST expat
PM M-06-11 2011 09:57:51ST flex
PM M-06-11 2011 09:57:51ST gdbm
PM M-06-11 2011 09:57:52ST imagemagick
PM M-07-11 2011 09:31:54ST keyutils
PM M-06-11 2011 09:57:52ST krb5
PM M-06-11 2011 09:57:52ST lib32-libpciaccess
PM M-06-11 2011 09:57:52ST libcap
PM M-07-11 2011 09:31:54ST libdatrie
PM M-06-11 2011 09:57:52ST libldap
PM M-06-11 2011 09:57:52ST libpcap
PM M-06-11 2011 09:57:52ST libpipeline
PM M-07-11 2011 09:31:54ST libthai
PM M-07-11 2011 09:31:54ST module-init-tools
PM M-06-11 2011 09:57:52ST nano
PM M-06-11 2011 09:57:52ST popt
PM M-06-11 2011 09:57:52ST readline
PM M-06-11 2011 09:57:52ST talloc
PM M-06-11 2011 09:57:52ST texinfo
PM M-06-11 2011 09:57:52ST vi
PM M-06-11 2011 09:57:52ST wpa_actiond
PM M-06-11 2011 09:57:52ST wpa_supplicant
PM M-07-11 2011 09:31:54ST xorg-server
PM M-07-11 2011 09:31:54ST xorg-server-common
Around the above dates I installed pcmanfm to try it out, but subsequently uninstalled it. Thunar was still working at the time.
Subsequently (today) I installed gvfs to see if it made any difference, but it did not.
Last edited by David Batson (2011-11-15 01:08:02)Polkit-gnome was the missing ingredient. With polkit-gnome installed the udisks.pkla file is not required. One difference between the usdisks.pkla fix and the polkit-gnome fix is that you are prompted for root's password to mount the drive. No problem for me there - I prefer it that way.
I did not decipher from the bug report that polkit-gnome was required for thunar in Xfce - only perhaps for thunar in gnome. I wish this had been made more clear in the bug report I filed.
The thunar maintainer for arch wrote: Remove org.freedesktop.udisks.pkla; mounting/unmounting of removable media should continue to function through gvfs. No mention that polkit-gnome was required as well (for all desktops I imagine). I already did have polkit installed - just not polkit-gnome. Polkit was working, just missing some pieces for full functionality.
In the end, I consider it a bug if a dependency is not listed as required or optional.
Package Details: thunar 1.2.3-2
Dependencies (16)
desktop-file-utils
exo
gtk2
hicolor-icon-theme
libexif
libnotify
libpng
libxfce4ui
libxfce4util
udev
gvfs (optional) - for trash support, mounting with udisk and remote filesystems
thunar-archive-plugin (optional) - create and deflate archives
thunar-media-tags-plugin (optional) - view/edit id3/ogg tags
thunar-volman (optional) - manages removable devices
tumbler (optional) - for thumbnail previews
xfce4-panel (optional) - for trash applet
http://www.archlinux.org/packages/extra/x86_64/thunar/
Package Details: gvfs 1.10.1-1
Dependencies (12)
avahi
dconf
fuse
libarchive
libcdio
libgdu
libsoup-gnome
gvfs-afc (optional) - AFC (mobile devices) support
gvfs-afp (optional) - Apple Filing Protocol (AFP) support
gvfs-gphoto2 (optional) - gphoto2 (PTP camera/MTP media player) support
gvfs-obexftp (optional) - ObexFTP (bluetooth) support
gvfs-smb (optional) - SMB/CIFS (Windows client) support
http://www.archlinux.org/packages/extra/x86_64/gvfs/ -
[Solved] Permission denied for imgs in apache home folder
Hi,
I'm getting 403 error when trying to open a captcha image with the browser (generated by codeigniter PHP framework with captcha helper and Tank Auth library) the imgs are created with the http owner with permission "-rw-r--r--" inside a captcha folder
with 777 permissions.
The apache local server is configured to use the documentRoot to a www folder in /home dir with this permissions "drwxr-xr-x"
Have http group and users created like the arch wiki LAMP section.
The httpd.conf is confgured like this:
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
DocumentRoot "/home/lucas/www"
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
# First, we configure the "default" to be a very restrictive set of
# features.
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
</Directory>
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
# This should be changed to whatever you set DocumentRoot to.
<Directory "/home/lucas/www">
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
Options Indexes FollowSymLinks
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#AllowOverride None
# Controls who can get stuff from this server.
Order allow,deny
Allow from all
</Directory>
Last edited by crosssover (2012-09-17 23:20:57)Here is the log massge
[Sun Sep 16 14:26:47 2012] [error] [client ::1] File does not exist: /home/lucas/www/favicon.ico
[Sun Sep 16 14:26:47 2012] [error] [client ::1] client denied by server configuration: /home/lucas/www/test/application/captcha/1347816281.8856.jpg -
How to fix permission denied for home folder with Apache in Mavericks?
I recently activated the apache that ships with OS X Mavericks. I followed some tutorial to set up the web-server, however. When I browse to my home-filter at http://localhost/~nazeem, I get the following error: You don't have permission to access /~nazeem/ on this server.
Installation steps
To set up the webserver, I took the following steps:
1. activated the webserver with command: apachectl start
2. enabled PHP by checking if the module is loaded
3. checked if the home folder module is loaded
4. made the user based configuration file, in /etc/apache2/users/nazeem.conf The content is as follows:
<Directory "/Users/nazeem/Development/Websites/">
Options Indexes MultiViews FollowSymLinks AllowOverride All
</Directory>
Permissions
~/nazeem : drwxr-xr-x+ ~/nazeem/Development : drwxr-xr-x ~/nazeem/Development/Websites : drwxr-xr-x
Log
The apache log says the following:
[Mon May 19 21:22:57 2014] [error] [client ::1] client denied by server configuration: /Users/nazeem/Sites
In my opinion this is remarkable, as the path /Users/nazeem/Sites is nog what I defined in my user configuration.
Versions
OS X Mavericks 10.9.3
Apache 2.2.26
Does anybody know how to solve this?nzm_aak wrote:
I recently activated the apache that ships with OS X Mavericks. I followed some tutorial to set up the web-server, however. When I browse to my home-filter at http://localhost/~nazeem, I get the following error: You don't have permission to access /~nazeem/ on this server.
Does anybody know how to solve this?
You will have to contact the author of that tutorial and ask. Apache can be configured an infinite number of ways. You seem to be attempting to configure it in two conflicting methods. You can define specific directories on your web server or you can use mod_userdir. You can't hack up a combination of the two.
I posted my own User Tip on how to configure Apache: https://discussions.apple.com/docs/DOC-3083
This user tip only covers mod_userdir and will serve content out of $(HOME)/Sites. I strongly suggest starting there and only trying a custom location later, if you see the need. -
Cannot uninstall FF in mac air, permission denied for administrator also??
i downloaded new FF for my mac book air.
i tried to uninstall older version by dragging it into trashbin. but the program cannot be deleted as per no permissions.
the only account in this mac book is mine and that is the administrator acct.
i tried to move the new downloaded icon inot applications and agian i get no permission?? any idea?Perhaps using
ssh -v -v -v [email protected]
Which should give you alot more details.
If you do 2 of these. One to the failing system, and one to a working system, and then compare the 2 debugging output streams to see where the failing system goes bad. -
Hi,
I get this error message when I try to create a NameSpace object in any Software Component Version with the user XISUPER.
Insufficient authorization to change object Software Component Version sap.com | SAP_BASIS | 46C | 01200245450200002167
Any Ideas?
Thanks in advance.Hi,
I created the dialog user and assigned the following roles:
SAP_XI_DEVELOPER_ABAP
SAP_XI_DEVELOPER_J2EE
SAP_SLD_GUEST
SAP_XI_BPE_CONFIGURATOR_ABAP
SAP_XI_CONFIGURATOR_ABAP
SAP_XI_CONFIGURATOR_J2EE
SAP_XI_BPE_MONITOR_ABAP
SAP_XI_MONITOR_ABAP
SAP_XI_MONITOR_J2EE
and I compared all; still doesn't work.
When I try to modify any object the message is the same.
Insufficient authorization to change object ...... -
ShowDocument url permission denied in 1.6.0_24
Have a JWS application, which was bringing up the default browser. Sometime the url was http & others was file ( sort of a print preview function). Starting in 1.6.0_24, I am getting a SecurityException "ShowDocument url permission denied" for both.
Have <security> <all-permissions/> </security> in the jnlp.
Error also occurs in OSX. Both worked before. What gives?
Thank you!Just some feedback for anyone reading from a search result:
That tool was very helpful! I just ran it against jnlp, and started implementing its suggestions, like specifying size=, etc.
The change that caused this to be fixed was the jnlp tag. Am currently running with a codebase of file for dev. I had:
<jnlp spec="1.0+" codebase="file://localhost/Z:/media/" href="swing/thisfile.jnlp">
Changed to:
<jnlp spec="1.0+" codebase="file:/Z:/media/" href="swing/thisfile.jnlp">
Not sure where I got that codebase, but it was a long time ago. -
Server Debug Permission denied
I upgraded to CF8 and now when using the "Server Debug"
feture in Dreamweaver 8 I get an error. I can skip the error and
everything seems ok. It is just such a pain to get the error
message each time I start a debug session.
The error is:
The following error has occured while connecting to the
ColdFusion Server:
Permission denied for the requested operation.
Each time I make the error occure an entry is placed in the
ColdFusion Runtime log:
user RDSServlet: Permission denied for the requested
operation
I am running on MS IIS on a windows XP proTry turning on logging.
I typically edit /etc/syslog.conf and add an entry
local7.info;local7.debug /var/log/sshd
ensuring the entries are tab delimited.
Then
touch /var/log/sshd
Edit /etc/ssh/sshd_config and change
SyslogFacility auth
LogLevel info
to
SyslogFacility LOCAL7
LogLevel debug
Restart everything:
svcadm restart system-log
svcadm restart ssh -
Getting Permission Denied using sendXMLRequest
Hi,
I'm trying to do some admininistration of MapViewer using the Java API, but get the following response:
****** response = <?xml version="1.0" encoding="UTF-8" ?> <oms_error> Permission denied for this operation!</oms_error>
My reading of Chapter 6 " MapViewer Administrative Requests" implies that the following should work:
MapViewer mv = new MapViewer(mvURLStr);
StringBuffer buf = new StringBuffer();
buf.append("<?xml version=\"1.0\" standalone=\"yes\"?> ");
buf.append(" <non_map_request> ");
buf.append(" <clear_cache data_source=\"mvdemo\"/> ");
buf.append(" </non_map_request> ");
mv.sendXMLRequest(buf.toString());
System.out.println("****** response = " +mv.getXMLResponse());
How to get this working?
Thanks,
--BobCAll admin requests are disabled since MapViewer 10.1.2 for security reasons.
If you need to clear the cache, you either need to do it manually, or disable the caching of a theme entirely.
Or, there is an undocumented attribute that you can set in mapViewerConfig.xml, which completely disables the security checking for all admin requests:
<mv_security enforce_sec_role="false" />
Obviously you need to be very careful as any user can now send admin requests, such as deleting existing data soruces. -
[solved] "permission denied" even though I am logged in as root
Hi, I just installed Arch and now I am trying to add repositories to pacman.
I am currently logged in as root
[root@arch ~]#
Now I am trying to access /etc/pacman.conf by typing
/etc/pacman.conf
wich returns
-basch: /etc/pacman.conf: Permission denied
So I checked the forum and the wiki how to check permissions for files. found this wiki.archlinux.org/index.php/File_Permi … ermissions
so I did
# cd /etc
# ls -l
wich gave me
-rw-r--r-- 1 root root 2862 Jun 18 06:01 pacman.conf
If I read this correctly it says that "root" can read and write. But I am logged in as "root" so why can I not edit the file?
Last edited by ningfengrui (2013-08-21 09:50:17)No problem at all & welcome to arch.
If you had not been so new, I would not of been this kind to you because the first result of a google search of "basch: /etc/pacman.conf: Permission denied" would have given you the answer you needed
But hey! we all make the same mistake, but be sure to search for the answer before you ask here.
Also, you need to edit the title of your original post to read "[Solved] "permission denied" even though I am logged in as root"
lecture over ! & again, welcome to arch -
[solved] mysql suddenly access denied for user root ..
Hi folk,
I am in total panic right now!
As of an hour ago i suddenly got 'Error establishing a database connection' from all of my sites
I then first tried to login through phpmyadmin but got #1045 Cannot log in to the MySQL server
I then tried to login through the terminal but got ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
I am not really sure where to find solutions because primarily this error is on new installs:
I have tried the following :
mysql_safe --skip-grant-tables
[odp@odp ~]$ sudo mysqld_safe --skip-grant-tables &
[4] 3181
[odp@odp ~]$ 140115 19:43:50 mysqld_safe Logging to '/var/lib/mysql/odp.err'.
140115 19:43:50 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140115 19:43:52 mysqld_safe mysqld from pid file /var/lib/mysql/odp.pid ended
[4] Done sudo mysqld_safe --skip-grant-tables
here is the odp.err
140115 19:25:41 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140115 19:25:41 InnoDB: The InnoDB memory heap is disabled
140115 19:25:41 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140115 19:25:41 InnoDB: Compressed tables use zlib 1.2.8
140115 19:25:41 InnoDB: Using Linux native AIO
140115 19:25:41 InnoDB: Initializing buffer pool, size = 128.0M
140115 19:25:41 InnoDB: Completed initialization of buffer pool
140115 19:25:41 InnoDB: highest supported file format is Barracuda.
140115 19:25:41 InnoDB: Waiting for the background threads to start
140115 19:25:42 Percona XtraDB (http://www.percona.com) 5.5.34-MariaDB-31.1 started; log sequence number 38562281
140115 19:25:42 [Note] Plugin 'FEEDBACK' is disabled.
140115 19:25:42 [ERROR] /usr/bin/mysqld: unknown option '--skip-grant-tables'
140115 19:25:42 [ERROR] Aborting
140115 19:25:42 InnoDB: Starting shutdown...
140115 19:25:42 InnoDB: Shutdown completed; log sequence number 38562281
140115 19:25:42 [Note] /usr/bin/mysqld: Shutdown complete
140115 19:25:42 mysqld_safe mysqld from pid file /var/lib/mysql/odp.pid ended
140115 19:35:48 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140115 19:35:48 InnoDB: The InnoDB memory heap is disabled
140115 19:35:48 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140115 19:35:48 InnoDB: Compressed tables use zlib 1.2.8
140115 19:35:48 InnoDB: Using Linux native AIO
140115 19:35:48 InnoDB: Initializing buffer pool, size = 128.0M
140115 19:35:48 InnoDB: Completed initialization of buffer pool
InnoDB: Unable to lock ./ibdata1, error: 11
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
140115 19:35:48 InnoDB: Retrying to lock the first data file
InnoDB: Unable to lock ./ibdata1, error: 11
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
140115 19:37:28 InnoDB: Unable to open the first data file
InnoDB: Error in opening ./ibdata1
140115 19:37:28 InnoDB: Operating system error number 11 in a file operation.
InnoDB: Error number 11 means 'Resource temporarily unavailable'.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/operating-system-error-codes.html
140115 19:37:28 InnoDB: Could not open or create data files.
140115 19:37:28 InnoDB: If you tried to add new data files, and it failed here,
140115 19:37:28 InnoDB: you should now edit innodb_data_file_path in my.cnf back
140115 19:37:28 InnoDB: to what it was, and remove the new ibdata files InnoDB created
140115 19:37:28 InnoDB: in this failed attempt. InnoDB only wrote those files full of
140115 19:37:28 InnoDB: zeros, but did not yet use them in any way. But be careful: do not
140115 19:37:28 InnoDB: remove old data files which contain your precious data!
140115 19:37:28 [ERROR] Plugin 'InnoDB' init function returned error.
140115 19:37:28 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140115 19:37:28 [ERROR] mysqld: Can't lock aria control file '/var/lib/mysql/aria_log_control' for exclusive use, error: 11. Will retry for 30 seconds
I have also tried the solution where you move the ibdata1 and copy it back with -a to no success.
The result of mysqld_safe --skip-grant-tabels
[odp@odp ~]$ mysqld_safe --skip-grant-tabels &
[4] 3555
[odp@odp ~]$ 140115 19:49:21 mysqld_safe Logging to '/var/lib/mysql/odp.err'.
touch: cannot touch '/var/lib/mysql/odp.err': Permission denied
chmod: cannot access '/var/lib/mysql/odp.err': Permission denied
140115 19:49:21 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
/usr/bin/mysqld_safe: line 138: /var/lib/mysql/odp.err: Permission denied
rm: cannot remove '/var/lib/mysql/odp.pid': Permission denied
/usr/bin/mysqld_safe: line 182: /var/lib/mysql/odp.err: Permission denied
touch: cannot touch '/var/lib/mysql/odp.err': Permission denied
chown: cannot access '/var/lib/mysql/odp.err': Permission denied
chmod: cannot access '/var/lib/mysql/odp.err': Permission denied
140115 19:49:21 mysqld_safe mysqld from pid file /var/lib/mysql/odp.pid ended
/usr/bin/mysqld_safe: line 138: /var/lib/mysql/odp.err: Permission denied
[4] Exit 1 mysqld_safe --skip-grant-tables
any advice is greatly appreciated
Last edited by odp (2014-01-15 19:46:39)OK super random, it works now.
First off I too took and added skip-grant-tables to [mysqld] /etc/mysql/my.cnf
restarted mysqld and finally had passwordless login. From within mysql i ran
UPDATE mysql.user SET Password=PASSWORD('password') WHERE User='root';
FLUSH PRIVILEGES;
Maybe you are looking for
-
My ipod classic 160gb cannot be synced by my windows vista computer. The library is copied alright, but the ipod cannot be synced; Help! How can I overcome this, please?
-
How much does a slide weigh?
Hi, weight means Kb size for this post....not sure what else to call it. I am wondering, is there is a source to find out what makes a slide/project "heavy" in terms of its published kb size. Meaning, if I create a single slide project, just for argu
-
Report-Report Passing Values with SMOD_RSR00004
Hi, I operated the BADI SMOD_RSR00004 which suppose to help in mapping values from a sender report to a receiver report. I didn't succeed to see in a debug mode the sender query's time characteristic value I used. I mean that all the rows/columns cha
-
Expensive SQL statements in EWA
Hi experts, how can I add expensive SQL statements to Early watch alert reports? In my IDES system this is generated automatically but not for different other systems. Can this be activated by specific settings? Thanks and best regards, Basti
-
Do flv and swf have pixel sizes?
I am putting some video at a website. The video is in FLV format. How do I know what size the pixels would be? Do flv and swf files have actual pixel sizes? Thank you!