/usr/lib/libgconf2-4/gconf-sanity-check-2 Exited With Status 256

Here is the problem:
/usr/lib/libgconf2-4/gconf-sanity-check-2 exited with status 256

Here are all the solutions I founded on the internet (NONE of them work):
rm -rf /var/tmp/rc_host_0
chown -rwx root:root /tmp
chmod 1777 /tmp
chmod 0755 /home
chmod a+rwx /tmp
chown -R root:root /var/lib/gdm
chmod -R 777 /var/lib/gdm
rm -rf /var/lib/gdm3/.*
rm -rf /var/lib/gdm/.*
rm -rf /Home Dir/UserName/.gcon*
rm -rf /Home Dir/UserName/.gnom*
rm -rf /Home Dir/UserName/.cache
rm -rf /Home Dir/UserName/.person*
touch /Home Dir/UserName/.personal.login
cat /etc/gconf/gconf.xml.system
mkdir -p /usr/local/etc/gconf/gconf.xml.default
chmod 775 /etc/gconf/gconf.xml.system

Here is my system information:
Linux Kernel v2.6.32-504.12.2.el6.x86_64
CentOS 6.6
GNOME 2.28.2

I have been searching for an answer all week and found NONE.
Somebody, Anybody please help!!!

The only solution I found that works is deleting all the .files, but there's got to be a better way.


Similar Content



Bad: How To Disable Gconfd In Firefox

I use Firefox 16 for my automation and it uses gconfd internally.
Is there a way to disable firefox from using gconfd. It writes a lot of data into saved_state which is leading to crashing total usage of CPU.

I have found –disable-gconf
but not sure how to compile firefox with that command


Is there a way to disable log messages from gconf?

Why Vsftp Can Do It, But Openssh Sftp Cannot ? (chroot)

Dear all,

This is long story cut short, with vsftp, if i set this parameters in the vsftp.conf file below

Code:
local_enable=YES
chroot_local_users=YES

I am able to login to the ftp account, see and list my home/user directory, and if i do a cd / or cd .. , i will still be chroot to my /home/user directory.

without, the need to chmod or or chown anything to my /home/user directory

=============================================

With openSSH, internal_sftp, even though I have set the sshd_conf to

Code:
Match user alankoh
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
ChrootDirectory /home/%u

I will need to change owner my /home/user directory to have root becomes it owner.
============================================

Q1) why this difference ? How does vsftp chroot without changing the /home/user folder ownership ?

Q2) i realize that openssh ChrootDirectory parameter causes my default login directory to be set as that of the parameter.
(e.g. if i set to "/whatever/xyz", i will be brought to that /whatever/xyz everytime i login to the sftp instead of my /home/user folder.

Why ? I thought that ChrootDirectory is just a security measure to specify the directory to go to in case the user cd to root (e.g. cd /), else not, i should still go to my /home/user folder everytime i login to sftp.

Regards,
Noob

Setuid, Setgid, Sticky Bit

There's something really weird happening with permissions on a directory in linux. I have the directory /dir

Code:
ls -ld /dir
drwxrwxrwx. 2 root root 4096 Jan  8 00:06 dir
chmod 2777 /dir [this sets the setgid bit on]
ls -ld /dir
drwxrwsrwx. 2 root root 4096 Jan  8 00:06 /dir

And this is what I expect it to do.
However, when I change it to setid (WITHOUT setgid), it simply doesn't work. Instead of overwriting, it cumulates:
Code:
chmod 4777 /dir [for setting setuid bit on]
drwsrwsrwx. 2 root root 4096 Jan  8 00:06 /dir

As you can see, the setgid bit is still on together with the setuid! However, if I run:
Code:
chmod -s /dir

then the file has a 0777 permission.

And then again, if I change its permission to 4777 (so setuid):
Code:
chmod 4777 /dir
drwsrwxrwx. 2 root root 4096 Jan  8 00:06 /dir

it acts normally. So the same chmod 4777 acts differently in two different contexts.

I really can't understand it. Basically, I cannot get rid of the setuid/setgid through binary permissions. The sticky bit works fine. Changing from 1777 to 0777 adds and removes "t" respectively. What am I to make of all this? This behaviour makes no sense to make especially given that we can change the permissions to 6777 (setuid + setgid).

Why Should I Always Use Chmod When Not As A Root User

System Info:

I have normal user in CentOS 7 whose name is "mostafa" (the name of the account).

I naturally have another user called root with all privileges. User "mostafa" is put into sudoers file, too.

The OS is installed in VmWare, so the system is all mine.

Problem:

Now I create a file with touch file.sh and put a command in it, but when I want to run it with Code:
sudo ./file.sh

, an error is shown that the command Code:
./file.sh

does not exist. But if I Code:
 sudo chmod 777 ./file.sh

then it gets run. My question is that, why should I use Code:
chmod 777

when I myself have created the file, and I am in sudoers.

Can anyone explain me why shuold I still use Code:
sudo chmod 777

when the creator of the file is me.

Changing User Name Slight Hangup

hi-

Today I switched my linux username and changed to /home/newname. I am doing this because it is not secure to broadcast your username to the world.

At this link:

http://askubuntu.com/questions/34074...ge-my-username

I am wondering if there is a way to do it a little better for me.

Quote:
You can either keep a symlink for backward compatibility, e g ln -s /home/newname /home/oldname or you can change the file contents with sed -i.bak 's/*oldname*/*newname*/g' *list of files* It creates a backup for each file with a .bak extension.
I tried to do a symlink.

It is not working exactly the way I had hoped. I may not understand it.

When I do the command ls -l I had to make an alias command with awk to parse out the user when i display it. That isn't a big deal but I noticed the oldname and newname are in the printout before filtering it with awk.

Also, my old home directory (the one that matches my /home/oldname is not deleted).

I can log in and the desktop looks fine. I indeed have a new /home/newname.

At one point can I delete the /home/oldname.

Is it okay that ls -l is picking up both usernames (new and old) in separate columns?

I wanted to bounce this off a more experienced user to see if there are some minor adjustments I can do to improve not having 2 home directories and if it is okay for ls -l to display both the old and new user name.

thanks!

mtdew3q

Unable To Login On Runlevel 3 In Fedora 21 Xfce After Moving/restoring Usr Dir

I'm not a total linux newbie, but I figure this is a newbie mistake, so here it is.

I'm running fedora 21 xfce on a triple boot system (using grub to select the os), so if it's at all possible to avoid a reinstall that would be very awesome.
What happened:
I ran out of space on my root partition (lvm). Tried to figure out how to resize the root partition while tired, gave up, decided to move /usr to my home partition and create a symlink. Copied /usr to /home/usr, deleted /usr. Unable to create the symlink now (duh! as I said, I was tired), booted into liveusb disk to create the symlink. Couldn't boot after that and gave up for the night. This morning I was clear enough to figure out resizing the partitions, so I did and then copied /home/usr back to /usr. Rebooted and everything seems normal until I want to login. Logging in just dumps me back at the login screen, wether I use root, user runlevel 5 or runlevel 3, no matter. In runlevel 3 there might be an error message but it flashes by so quickly I can't read it. Authentication does proceed, because logging in with a wrong username or password gives the proper error.
Google has not provided me with any useful hints, so I'm at a loss. Can someone please help me out?

Many thanks,

Willem

Cygwin Rsync Script Copying File Incorrectly

I am trying to write a simple test script that executes a single rsync call. Once I get the syntax right, the script will be expanded to incorporate several rsync instructions to save me time.

I'm using a Cygwin Terminal on Windows 7 to run Rsync.

The script is called "backup" and I call it from the cygwin terminal using "./backup". Have used chmod to make it executable.

When I execute the rsync instruction as a standalone instruction at terminal prompt, the file copies to the target folder perfectly.

However, when I try and drop the same instruction into a script, it copies the file over from it's original file name "mvi_1840.mov" to a file with the name "." -- literally a single period. I can rename the file to a .mov file and it works fine but naturally, I don't want to have to do this.

The one other thing I will mention is that the file is located in the /home/"username" directory in cygwin vs /bin. But I would not think that this would make a difference.

I have pasted the contents of the script file below:
Code:
#!/bin/bash
    rsync.exe -rltDvP --exclude "System Volume Information" --exclude
 "RECYCLER" --exclude=\$RECYCLE.BIN --delete "/cygdrive/c/users/<USERNAME>
/desktop/mvi_1840.mov" "/cygdrive/c/users/<USERNAME>/desktop/test/"

Any help would be greatly appreciated!

Thanks

Forgotten/compromised Password For Localhost Username Root

hi sir.need ur help. a desktop comp is endorsed to me with Linux system. the previous user failed to give the password for localhost root and im not able to login to the system. I really need to backup the files and programs installed and afraid to reboot since our database program is installed in the pc. would really appreciate your help.ty

Ssh Public Key Fingerprint

First time post so I hope it's not too long winded!

I've just installed Centos v7.1 and created an additional user.

First putty session I logged in with root and got the public fingerprint message and clicked Yes to accept.

However I noted when I logged in with the user other I did not get the prompt and my home directory didn't have a .ssh directory.

OK, so I created a .ssh (chmod 700) directory within /etc/skel and created a new user. Logged in with that account and still no prompt, although I do now have a .ssh directory generated.

I've tried deleting the known_hosts files in the root's .ssh directory and restarting the sshd daemon but it's not working.

How do I get it to prompt with original public key again?

Thanks for reading.

File Permissions

I am trying to learn how to set up Authentication Keys to log in to my server.

Could someone please explain what the following code does...
Code:
chown -R example_user:example_user .ssh
chmod 700 .ssh
chmod 600 .ssh/authorized_keys

Thanks,


Rob