Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
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 have a problem with startx and non root users,
every reboot, before be able to startx from users, I have to startx with root...after that I can startx with others users too without problems.
what can be?
Something in the long chain needs permissions 4755, or 4711. I forget which permissions, and what exactly, but an elementary bit of searching should akkow you to sort yourself out. I learned that on LQ. You can too, by searching the forums.
file in the user's /home directory. It should not have been copied from another user's directory and should be created the first time X is run as that user, not root.
file in the user's /home directory. It should not have been copied from another user's directory and should be created the first time X is run as that user, not root.
thanks but I already tried to delete it but still doesn't works
thanks but I already tried to delete it but still doesn't works
If you do a long listing on that file, I bet you'll find that it belongs to root and not to you. Use sudo to delete it. Then try to log in again as yourself.
If you do a long listing on that file, I bet you'll find that it belongs to root and not to you. Use sudo to delete it. Then try to log in again as yourself.
No, it belong to me, not root.
Maybe I didn't explain me well, but I can startx with my user but only once doing a startx with root.
I have to
1. Boot the computer
2. Startx with root (and exit)
3. Startx with my user
So it works, not if I skip 2.
The error if I skip 2. is that device is found but there is no configuration available (tomorrow I can quote the exapt error)
I have a problem with startx and non root users,
every reboot, before be able to startx from users, I have to startx with root...after that I can startx with others users too without problems.
what can be?
I'm on gentoo linux, xfce, my .xinitrc
Code:
luna80@gentoo ~ $ more .xinitrc
exec startxfce4
thanks in advance
If that is your .xinitrc file it is wrong. .xinitrc is a shell script and should have have the shebang
Code:
#!/bin/bash
at the top, No spaces. ( for some reason even with the code tags its not coming out right).
Another idea to look at is logind. Based on your description it doesn't sound like you're using it.
From https://wiki.gentoo.org/wiki/Xorg/Guide#Configuration"
Note
By default the suid USE flag is disabled, which is fine when, as per recommendation, X runs under a logind provider like elogind, or systemd. The suid USE flag should however be enabled in /etc/portage/package.use/xorg-server in case no logind provider is used and X is run under a normal user account, e.g. started with startx. Please see also this repository news article. Setting suid would then prevent permission errors on /dev/tty0, or on virtual console 7.
I found the problem. I wrong put the flag "user" in /etc/fstab on the root partition.
And this was causing the root partition to be unmounted somehow? Am I understanding that right? Sorry, just seeking clarification for future reference.
And this was causing the root partition to be unmounted somehow? Am I understanding that right? Sorry, just seeking clarification for future reference.
I cannot su with the "user" flag on the root and for some reason I cannot startx too, solved the su problem X is starting corrrectly
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.