Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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 could not get efax to run after installing it. From what I could decipher, the modem would not give me access.. So I changed permissions chmod 666 /dev/modem/
Why I chose this I do not know. But it made efax work.
Then I later log off and try to startx. It says I'm probably not the owner of the console. So I chown username.root /dev * Doesn't do it. I try chown username.username /dev * and finally chown root.root /dev *
i can see ls-l it is changing the ownerships but still won't let me startx. So I try chmod 777 /dev/* and changes the permissions but with all combinations of chown still can't startx.
I can only startx in root with any of the above combinations.
I'm pretty lost here.
Oh, red hat 6.2 on i486 - and this computer was downloaded and handed to me by a friend. It was my first pc. No windows or mac experience before.
startx in /usr/X11R6 and /Usr/bin both give anyone read and execute permission. Both are root.root but so is everything else that isn't in my home directory. I am set up to only be the owner.user set by chown,only in my home directory. And things worked before. I, as the user, have permissions to almost all files to read and execute. It was set up for me to have to go into root for a lot of things, but not startx.
And thank you for your response. I'll change ownership in those and see what happens, as a shot in the dark.
In case you were still wondering, the chown command works as follows:
A given file can have basic permissions like
rwx rwx rwx
The first set of rwx's is the User permissions. This of course is whomever the owner of the file is gets these various permissions. When your root you are a special case since you can execute anything on the system that has at least a user+x flag.
The second set pertains to group permissions, this is pretty straightforward.
The third set is for 'other' which means you can compile and set a file executable by anyone on the system.
Your using this and not even knowing it when you chmod 666 something.
The way the numbering works is a bit tricky if you don't know binary, but it's not too tough to pick up
Let's say I have a file with permission rw-rw-r--
This would have a number permission of: 110 110 100 or 6 6 4
This simply boils down to converting to decimal the mode you would like(755 for instance = rwxr-xr-x) and is useful for utilities you would like other people to execute but not to overwrite.
Play with this with simple text files so you might understand a bit more.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.