LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   File Permissions for /usr (https://www.linuxquestions.org/questions/linux-newbie-8/file-permissions-for-usr-582945/)

06jer 09-07-2007 10:26 AM

File Permissions for /usr
 
I think I messed up my file permissions for /usr. What I did was I transferred ownership of /usr (using -R) from root to the users. I then added myself (my day-to-day account with sudo) to users.

The command /usr/bin/startxfce4 worked before but now it doesn't. When I try to start Xfce it gives me the following error:

fatal server error:
cannot move log file "/var/log/Xorg.0.log" to "/var/log/Xorg.0.log.old"

What are these permissions supposed to be?

I run Crux 2.3.

Right now, eveything in /usr is owned by root:users

davesmith 09-07-2007 10:55 AM

/var/log should be 755 owned by root:root

Code:

chown root.root /var/log
chmod 755 /var/log


06jer 09-07-2007 11:18 AM

/var/log is owned by root as well as everything in it. It is also 755.

Before I messed with the permissions I was able to log into Xfce with my user account "jeremy." All I did was give the account sudo privileges and access to /usr/bin/startxfce4. I then changed ownership of /usr to the group "users" and put "jeremy" in that group so I could simply use everything in /usr with out using sudo. That is what gave me this problem.

One thing I forgot to mention earlier is that I tried to change the ownership of /usr (back?) to "root" but that didn't solve the problem.


All times are GMT -5. The time now is 05:21 AM.