Startx only works as root. send and intent as root is fairly easy as you also tried.

  • Startx only works as root henk Member From: Weert, Netherlands Registered: 2013-01-01 Posts: 334. To clear, systemd system services run as root by default, but there is still a difference between the default behavior and running a system service with User=root. Did you install a lot of stuff recently? Check the output of df -h If the partition where /tmp resides is over 95% full, then only root can access the limited remaining space (and write to the /tmp directory). Running startx as root works fine and same with sudo (although the latter acts as the former). # startx -- vt0 Until now, I hadn't even noticed that startx can take arguments, but this works beautifully for my situation. What would be the best way to configure this on Redhat? Hey guys i was searching how can i get rid of tearing in my old lenovo laptop running intel 3000 , and then i typed startx and that is when i wasn’t able to login normally since my screen got stuck at login It is not possible to run “startx” as normal user since years, it only works for root. If not, have it recall itself via sudo and then run with root permissions. I am having troubles running X, startx works and shows the minimal environment only if I'm running it as root, if I'm running it as a normal user only a black screen appears and nothing happens, but there are no errors in Xorg. service; pacman -S awesome; Add 'exec awesome' to Also you have to be root to run startx. This value has no effect if supervisord is not run as root. 04. e. I'm new to Linux, so I guess the latter for me. I then found that when logged into root, startx would run and I could use my mouse and keyboard again. Only root. Try Teams for free Explore Teams. Welcome to LinuxQuestions. It's not a real solution since I still can't use my main user account with all the configs and crap. Terminal display this when I type startx as regular user: No matter what I do, I cannot get "adb shell" to start with instantaneous root access. But now it boots and lands in a screen (without showing the GRUB menu) which displays my user account along with the Guest account. When somebody login it probably opens a new process and uses setuid syscall to set all permissions to the uid that has just logged in. In order to not destroy the game object you need to place it at the root level of the scene, not parented to any other object, so that the game object will persist to the other scene. Or a user will log in on a console and run startx. lshw -C display shows: *-display description: VGA compatible controller product: 82G33/G31 Express Integrated Graphics Controller Hello, I'm new to plain Debian (I've used Ubuntu), during the install I didn't install any desktop systems because I use i3 and that wasn't an option. 37 with xfce as as my window manager. I use startx as a non root user to get to X, with only OpenBox. Centos 7 xrdp allow connection from specific IP's only. However, it only works if I connect as root. 18. username ALL=(ALL:ALL) /bin/mount Re: [Solved] Xorg only works on second startx That's systemd setting a hostname because you shouldn't have localhost as your hostname. If you do need root access just use the "sudo" or "su" tools to run things as with root privileges or as root through user. I want to automatically start kodi on system start and for this i don't want to start it with root user, so i In terminal issue startx; What I guess that is happening is that systemd starts the X server and it is run under root user. What have I missed? It is clear to me that init is only to be run as root. Xauthority file then run ´startx´. exe but only as root. This is why it's good practice to do most of your activities as a normal user, and use root only when needed, like when you're installing a program. Save it in file (not in /tmp as that gets cleaned out on a reboot). Here to help you, we need more details , to avoid useless replies to matters that aren't concerning your case. MX 8MP as non-root-user? In my opinion not becaus the backend (drm-backend) and openvt needs root access. The problem has been solved! Essentially, I wasn’t able to have startx run as a regular user. Can startx as root, but not user. If I run CDM (Console Display Manager) as root, it works fine. If type the path to startx i get the following: $ /usr/X11R6/bin/startx The command vncserver :1 -localhost will only work under two conditions: As for this issue, it happens to be that files ownership is either current user or root only. I don’t remember if I am a member of the “input” group on that system. These commands have to be run under the root security context. Restart tomcat. I will, from now on, just su to root from normal user as per the recommendation of most that posted and the linux world in general. I will check when I get back home and update If I run the site manually as root user (dotnet WebsiteMainDll. Root is for system administration, not normal work. Can only startx as root User Name: Remember Me? Password: Debian This forum is for the discussion of Debian Linux. For example, if /var and /tmp are on the same partition, then run apt-get clean to clear out your /var/cache/apt/archives directory. startx works only if logged as root. xinit; my currently installed x-related packages are: xorg. When I try with a normal user, but I decided to get rid of LXDE and just use openbox + tint2 and it works fine now. Step 1. When I run clinfo not as root I get: terminate called after throwing an instance of 'cl::Error' what(): clGetPlatformIDs Aborted (core dumped) I am using the AMD opencl implementation, and the correct ICD file does exist under /etc/OpenCL/vendors. As @wrikken mentioned in his comments, id -u is a much better check for root. setPriority on child processes. This probably blocks vncserver from getting data from X server for the same user This is intentional functionality. Produces this error, because flatpak install stuff per user, so root does not have this app. startx only works as root: rbrasil: Debian: 3: 12-10-2003 07:45 PM: Gnome works but not with startx command: lil_critter99: Linux I had the same problem, but after 2 hours of search I ended up with x. I am trying to start startx as non-root user in my Ubuntu-server 16. I have built a htpc with console installation of debian 10 kernel 5. Viewed 2k times 0 After installing sudo in the system i am unable tu run sudo as a non-root user, when i try to execute any command i get: /usr/local/bin/sudo Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Don't hack with permissions, install Node. My regular user is also in the "power" group, but cannot suspend the system. Xauthority file (). sudo mysql -u root Delete the current Root User from the User Table. 4 Release Date: 2016-07-19 X Protocol Version 11, Revision 0 Build Operating System: Linux 4. It took me a while to find, but it looks like startx is provided by xorg. Try: df -h If it's full, make some space. I am wondering if this might be some kind of intended behavior since a non-root user should not be able to use the net command. EDIT: note - an ordinary user can start mysql as root if the correct password is used in the command above. I have my custom Vim files in ~/. 4. Re: startx works as root but not as user I guess there are several topics like yours, perhaps you could search a bit more. Xauthority file is owned by me and not root. apt-get install xfce4 apt-get install xfce4-goodies startx xfce starts perfectly. 2 Im fine using command line but I don't like only having one space to work. The only package you should install as root is virtualenv: #pip install virtualenv Then, you can work in a virtual environment as a normal user. Try Teams for free Explore Startx as non-root user via SSH. It loads up the nvidia splash then goes to the kde startup gui thing and then sits there flashing on I tried to put each of these files one-by-ne inside /rc. Therefore just copy your public key as admin to your Synolgy: $ cat ~/. If the game object is a child, the DontDestroyOnLoad() function will not work. Closed out, opened back up and it defaults again to root. Naturally, this does create problems for people who wish to have a single account that can do literally anything with the MySQL instance, such as developers and weekend server admins. To use startx as user you have to have a . conf I lose my config since Vim uses its default one. I expected this to just make TWM system wide as opposing to using my user . This won't be the same as root's password, if you know what I mean. As non-root I get no, that is not the primary problem. : I'm unable to startx without root permissions, as it throws me this error: parse_vt_settings: Cannot open /dev/tty0 (permission denied) When I run startx as root, either with sudo or by login, it works perfectly fine. How to stop Ubuntu (as VMware guest) from automatically logging out when host There are only 1 or 2 posts like this on the net, so either it's not a common problem, or it's a "der" moment. Assuming you take the default, once you have logged in as your user, it is easily rectified. In this way the desktop is unusable, because . It always requires a preliminary "su" command. Xauthority in your user-home directory (~) got owned by the root, and that's the reason why you're stuck with log-in loops. You are currently viewing LQ as a guest. Open Nautilus the usual way and press Ctrl+L to enable typing in the address-bar, and then enter for example admin:///usr/ to open the /usr/ I have built a htpc with console installation of debian 10 kernel 5. A webserver typically runs at port 80 and/or 443. vimrc. Because: Only root processes can listen to ports below 1024. also you could just have run this ::> sudo -su root startx – konqui. local and run “chkstat --system” afterwards to Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Hi, sorry I didn't get back to you sooner. The X server should load up by default if you switch to the graphical target With the default openSUSE setup, startx will not work for a normal user though, only for root. This way, when init. I get the following result: X: user not authorized to run the X server, aborting. 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. org with the startx command as root, everything works as expected. It still gives me the errors listed in OP, but only when I kill X/logout through openbox. xinitrc file (in user jeremy's home directory). I am not sure how to make sure things are initialized with flatpak, so I just installed OpenRGB through custom PPA `sudo add-apt-repository ppa:thopiekar/openrgb` . I've also tried deleting it and rebooting but didn't solve my issue. In CLI consoles I can login, startx writes timeout in locking authority file /home/ and does not start GUI. anyone know why this is happening?. I encountered this on a Lenovo IdeaPad with two graphic cards, one from Intel the other from Nvidia. How can I let the server be accessible to normal non-root users. If you are logged in with the GUI and open a terminal window then su leafpad will work fine, too. I seem to be having an issue with running startx as a non-root user, BUT! only when I try to run this as a service. Re: [SOLVED] xfce4 login failed. js as user, no root privileges. However, sometimes I have to edit some files in /etc and such. I even tried using su -l pi -c startx in its place so it will run as user "pi" but it does not run at boot like sudo startx does. Hot Network Questions When I login as root, and run startx, it works as expected. Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company I recently installed Ubuntu Server 10. If I boot into runlevel 3 and I had this same problem, the only difference was that I wanted to run this as a cronjob at night. Isn't this a somewhat common problem? Typically applications that need to do some specific "root" related tasks should launch as root but for security reasons they should downgrade as soon as possible to a non-root user. If you are the only user on the system that is concerning and may be quite involved to fix. NVM (Node Version Manager) allows you to install Node. Support. First, set the owner of the application to root (if it isn't already): sudo chown root:root /path/to/app Then configure rights with chmod, e. Works like a charm! Here's the problem, my node app requires root privileges to use os. I'm afraid we still do not really know what did you try exactly. Anyhow I would try this (at run level 3, that is to say before starting X): 1) Remove everything in /tmp as root 2) then go back to non root user and try 'startx' again 3) If that doesn't work, still at run level 3, as root create a new user with "adduser" command startx . xinitrc or if you don't have one copy it from /etc/skel/. When I try to login as root, I get stuck at the login page Ubuntu 18 login loop + startx works. I installed raspbian lite. Xauthority and . 2 as my root manager. Now, when I try to run startx, it open the xfce4-panels on a grey background but gets stuck there with the panels not responding. Is it possible to start weston as root-user and run qt-applications non-root-user? I think no because wayland-0. Ask questions, find answers and collaborate at work with Stack Overflow for Teams. File sharing over xrdp only works the first time. If it doesn't work as non root, then it's another problem. For filesystems which are mounted with the noexec by default, for example NFS, explicitly adding exec at the end helps, even when options provided earlier in the list default imply noexec as well, e. The error Try running type startx in your normal Terminal and you'll see the full path to startx. But when I add user, I was unable to do cp /etc/skel/. You should set your hostname correctly . So write your script, chown it to root and chmod it to 700 (so only root can run, read, or edit it) and then just allow your user[s] to run it through sudoers. xinitrc file which you could copy to the home directory of the non-root user to get XFCE to start for that user also. js without root permissions and also allows you to install many I recently changed my OS from openSUSE to CentOS. If I run it manually as the user it should run as (sudo -u siteuser dotnet WebsiteMainDll. If you insist on doing that anyway, you need to set the Xorg executable suid root. xf86inputsynaptics I created a . Teams. I . Modified 14 years, 10 months ago. 4924 does not exi It works perfectly when I use the OS as root user. How do I get Try "startxfce4" as user. Running any command that doesn't need to be run as root can be dangerous. dll), it doesn't work. Just removing noexec Umm, on my arch-linux the permissions on /dev/tty0 are 620, and owner is root and group id is tty. First make a note of the output from id. root is a special user in Linux. local fixes it After a recent system upgrade, I found I could not login and get my normal screen. – charmoniumQ. The net result is that sudo startx will leave a root-owned . The ~/. In addition, with proper use of sudo, you could have the script check and see if it is running as root. Xsession ownership to root so I need to change it back every time I log out of X. I have tried startx once I’m login but it shows me something wrong as below: xauth: file /root/. So if you have one of those options: noexec; user; Change them to: exec or; user,exec; It is important to place exec at the end. Try setting the write permission for group and see if that helps. Comment 1 Amit Kumar 2017-03-27 10:57:04 UTC but I need the solution to work in "every" Linux distribution. Every time I try to launch startx as a normal user it immediately crashes saying that the exiting process has been successful (haha, how funny). If you only need your daemon to be run as root in order to access a port number (such as 80 or Ask questions, find answers and collaborate at work with Stack Overflow for Teams. As to the issue at hand, all is as as expected. I'd appreciate some suggestions. I'm stumped. I logged out from xfce. Note from the documentation on master and worker processes: Running X as root is dangerous. Again I mean system (linux) non-root user, not the database user. I would like to allow the developer to execute this file and have it run as root. After restart your application will be a root. However, for It only appears in the initial shell (is that the right term) that you start in after logging in. Send an intent as root (root sends the intent) 2. Remedy: Try cleaning some stuff out. local and it starts as root! su -l m -c startx On my desktop I installed xorg, xorg-xinit, etc as root after installation. Install the default Ubuntu distro for WSL. Only as root. Interestingly it started TWM as root. Visit Stack Exchange. Fatal server error: (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied) so I tried to run sudo startx, which works, but it logs me in as root! How can I run startx with my user? MY HOME: After multiple failed attempts and hours of reading guides, I was finally able to connect. Modified 8 years, 9 months ago. The easiest solution is to add yourself to the dialout group. Reply hey I'm new to NetBSD, when I run startx on the normal user account it gives me startx: command not found but when I login as root it works just fine. I am facing 3 issues: I want to enable remote login for root. exe didn’t work and code command doesn’t work. Can anyone help me? Skip to main content. It doesn't just fix tmux, but also fixes SSH and "display managers" like GDM & LightDM, as well as avoiding duplicate Xorgs in general. You need to edit the ~/. launching gdm poses some no permission errors. But I cannot find the reason. works as expected. However, Because on my desktop it works just fine with both root and normal user. Personally, I like In short that means that everything you do in your script already has root permissions. local, but it always starts the GUI as root and not the user. For sudo -s to work you will have to be part of the admin group on an Ubuntu machine, which apparently you are not. Offline #4 2014-01-05 17:53:36. Xauthority file does not exist. 0. Logging in as root and using su -l <myuser> explicitly does not count – if you only do this then the session remains owned by root; device access rights will not be transferred when 'su' is used. Further more, I can now only connect to local server via mysql command line tool, mysql-workbench, adminer (php based web client) none can connect to local server. -I can sort of start session as a normal user if I force it into my current session (pe: startx -- vt1), but I get a black screen: Trying to use any other tty session or login to kill X is fruitless, as I keep having a black screen and I need to force restart the computer (normal user only, root works as itended and I can switch ttys). xinitrc looks like this: #!/bin/sh exec awesome Now I can confirm that sudo startx Is there a way to start lxde from the user account and get a desktop with only the users permissions? This feels like a permissions problem as everything works fine up to the point when i become a non root userI've learnt a lot setting this up but this is where i've hit a wall. Rename your aplication if it's need: yourApplicationName. Once I set things up in raspi-config, this time I got the GUI I was expecting. Launches whatever is Set in ~/. Here's what happens: I log into my regular user account then type startx. The Ubuntu installer will be visible upon restart. Mostly it follows the official docs. Hello I installed oidentd on freebsd 8 on my server with install options no natq and ipv6 enabled. I'll debug further): Find, that the package of the startx command is xinit; sudo apt purge xinit xauth; sudo apt install xinit xauth You actually can start an X session in root, but beware that as root your system is more vulnerable, so try not to mess around as a root user unless absolutely needed. local and it Installed and configured xrdp and I am able to connect from a Windows mstsc. – ojs no, that is not the primary problem. If I run the site manually as root user (dotnet WebsiteMainDll. We should print a warning to a user trying to execute it as root. I dunno, if these steps were nessesary, but they helped getting startx working, when executing as root (still doesn't work as non-root. The problem is when I am in runlevel 3. After restarting xorg my keyboard and mouse would no longer work, but X is for sure started and not frozen. As a workaround you can create a new user from console: root@box# useradd -m another setup a password: root@box# passwd another and retry. I booted an 11. The problem in that case would be that when you run startx, it executes each command Below example shows how to remove connect using ROOT, without SUDO. This is because the root graphical terminal is sent SIGHUP when the terminal that owns it is exited. x and Redhat V9. xinitrc as root, you only edited the root user's xinitrc. /etc/sudoers just list %sudo ALL ALL, sudo -l does not show anything for test. When you're logged in graphically, you can run your graphical terminal emulator app as root, as others have said. After I reboot the computer, I can't log on the X with my default user, unless I execute the su - command on the console before call startx. Viewed 802 times and that got rid of the '. The solution is to Not Run startx as root/with any priv escalation Tool(sudo/doas etc. There are no errors shown in the console. I tried to add new user - I can start desktop environment only as root but not as regular user. Stack Exchange Network. I am used to being able to launch a second X session in TTY8 with exec startx but instead I'm getting an error: X: user not authorized to run the X server, aborting. Depending on what the script does, another option may be to set up a sudo entry for whatever specialized commands the script Hi, sorry I didn't get back to you sooner. pacman -S gdm gnome; systemctl enable gdm. I’m unsure if playing around with user groups helped at all, but what finally did it for me was editing permissions. Once logged in as non-root-user, I want to start my GUI (Openbox) via startx and have it login as the non-root-user by typing: sudo startx. root@xyz # su -l myuser -c "startx arg1 arg2 . . When I now execute startx only a black screen appears, but no errors are printed in the /var/log/Xorg. Mention below entry in file. I'm running the latest stock Pie with November 2018 security patch with Magisk 17. I'm calling on an application that requires X11 and set this up on RPi 4 so that it fires up on boot On the RPi 5 if I do this as my non-root user (tegdash), The xserver fires up and the application runs as expected. And on the console I Question: How to startx by default in OpenBSD? Backstory: I recently reinstalled OpenBSD and it doesn't load the Desktop Environment environment and is text-only upon startup. org also works fine, if started with the X -command as non-root. Hello. But this didn't start until after I added the user kuroc to the power and plugdev groups. However, please know this is a personal PC with no other users, and I rarely run X/XFCE as root as it is, so please no admonishments about running X as root. Home: Forums: Tutorials: Articles: Register: Search I had the same issue on Slackware 13. The only solution I found is to run startx as root, then it works but I shouldn't need to do that! Update 2 The best solution I found so far is to switch to virtual terminal, remove the . My problem is that startx works only when I am root. echo $HOME however outputs /home/xyz. " b) You may be able to skip this step if you set the user in the When I log into some user xyz and start my desktop environment with startx I am logged in as root. serverauth files for all users In -current, Mark Kettenis fixed startx(1) to run unprivileged for modern graphics devices, meaning hardware supported by inteldrm/radeondrm with at least the modsetting driver. I want to automatically start kodi on system start and for this i don't want to start it with root user, so i I can login in console as my user and startx doesn't work (same flashing behaviour), but if I login as root and run startx Gnome launches and graphics works smooth. Static pre-configured shares work without problems. DROP USER 'root'@'localhost'; Create a new ROOT user (You can create a different user if needed) CREATE USER 'root'@'%' IDENTIFIED BY ''; Grant permissions to new User (ROOT) This "feature" appears to work only with liveISO boot, I wonder how it works, live boot is still Linux, the only difference I know with regular one is in using overlayfs for root / to put modifiable fs on top of non-modifiable file with all / from iso. org, a friendly and active Linux Community. Home: Forums: Tutorials: Articles: Register: Search sudo chown root:root . Avoid running startx as root: Since you started X system as root (by logging-in as root and using startx) the file . I. During installation, you are asked if you want xenodm to startx with a default of no. So I need to run the app with sudo, but I want my . I will get some relevant output as soon as I’m home. The driver is buggy, and coolbits ONLY work if you run X as root. 04(Linux nanopim1 3. The result is non-root Docker running in WSL. Solution 1: NVM. 1. It is running Ubuntu Server 20. war. js with root permissions, otherwise things like npm link, npm install -g will need the same permissions. I got my system booting and automatically logging my normal user into a GNOME session just fine. 37 but can't remember how I did solve it. If it was a permissions issue, I'd expect root to work, not the user account. You can su to be root and then use 'am start xxx' should work. Doesn’t work, the first startx is not successful via script. xinitrc ~ and uncomment the desktop environments . Create your user + password. gksu is a frontend for both su and sudo and on most OSes will be configured I searched the internet but didn't find similar issues related with startx along with virtual box. It launches xterm with three little windows, my mouse works, everything seems fine. Please do note that I might have not noticed some important details from the /var/log/Xorg. I then (iirc) logged in as root in a tty and set xinitrc to point to TWM. Code: Select all. What you tried to do would amount to a serious privilege escalation problem. That SUDO command only works as root (Solaris 10) Ask Question Asked 8 years, 9 months ago. Debugging sudo issues: run sudo -l as the user concerned to show which rights are assigned to that user. 1 KDE machine won’t go through the login session but only console login works. /program sudo chmod a+s . After executing "startx" command i get: /etc/X11/xinit/xserverrc: line 2: /usr/bin/X: Brak dostępu When running startx or xinit, no user is able to open x besides root. local but didn't work! the only thing that is work is putting startx without any addition on /etc/rc. Notices: I've tried logging in with root and switching to my user in terminal and initiating shutdown, but that didn't work either. Secure RDP from windows to linux on port 3389. xinitrc. I loged in on the console as an end-user. This may lead to breakage of How to run Gedit AND Nautilus as administrator with pkexec instead of gksu or gksudo GVfs method tested in Ubuntu 18. My solution is startx I have used Is it possible to start weston on a i. d starts up the services at boot time as root, the script launches the process as the non-root user I specify. If you edited ~/. You should neither have to nor adopt as practice running it as root. I used apt to install i3 and x-window-system (as root), and i3 works if I run startx as root, but when I try to run it as my regular user I get /. Proot doesn't track any chown call and file attribute states. I can however start X as root (sudo startx). If I start Vim like this: $ sudo vim /etc/rc. X. Killing the X server and restarting it via TTY, either as root or non-root, works like a charm; Writing scripts or services to automatically kill and restart X. Only the option to shut down is present, when I click the user name at the top right of the screen. But when i run it as nobody or as a similar oidentd-user it doesn't work. Not only can the local user now join wireless networks properly, but has proper access to other Gnome desktop features such as bluetooth and Suspend. From OP we know that they have exec i3. d/* configurations that don't include arguments will be allowed to run with any argument, commands allowed that do include On Linux Mint 17. 41. This may lead to breakage of I only get a result when I run as root. Currently it starts as a root user and all apps such as terminal, mousepad etc. Hi All, My 12. The only person who should ever be permitted to connect to the MySQL server as root should be the owner of the server. xf86inputevdev xorg. If it's not clear you should definitely familiarise yourself with the meaning of 'root' in a MySQL context. I have a PC I am dedicating as a server for Minecraft. If you want to troll, cuss, and spread FUD, do it elsewhere. This is done through an SSH connection, which requires proper configuration to work. 0r3 my startx script fails (it’s being run as an unprivileged user) saying xf86OpenConsole: Cannot open virtual console 2 (Permission denied) It works if you run it as root but then it doesn’t execute my . pm2 folder to remain in my /home/user directory so my user can access the log files, not /root. Why would it work with an identical install on my desktop I am only able to startx as sudo. g. When I log as a non root-user and I run startx, the desktop environment does not work. Up to Android 9: If adbd on your device is compiled without that flag, it will always drop privileges when starting up and thus "adb root" will not help at all. Consequently, some of the files that Jupyter uses were created as root-owned from the start. Home ; Categories ; I'm on a fresh Arch Linux installation, trying to get the awesome window manager to work. And now that I think of it, maybe the file you copied contains some other command before exec startxfce4 that needs root clearance. I have problem with my rpi 3. I know the risks. This editing of /etc/permissions. I u I am used to being able to launch a second X session in TTY8 with exec startx but instead I'm getting an error: X: user not authorized to run the X server, aborting. I also have installed xrdp, and it works fine for normal users but not root. --- UPDATE: after some tweaks, NOW: as root, run `startx`, it outputs as the above second screenshot; ran `startx Hi, one thing led to another (basically I was trying to fix graphics gone wrong after simply installing gnome-extensions or something related). Hope that helps. username ALL=(ALL:ALL) /bin/mount partition /directory Suppose if you want some directory also use below command. That means it needs to be started as root. Same happens with running startxfce4 (it also loads the wallpaper). mysql service does only start as root user. I added a 'samba' group and a user called 'samba' to that group, but I can't get the daemon run under it. However when I login as a normal user and Then, if I start X. startx doesn,t work every time as non root. Ask Question Asked 8 years, 3 months ago. war -> ROOT. Open cmd. 4 and only xorg, my plan is to run kodi/steam client and some dockers. Change SSH TTY session type to X11 at smbstatus can only work as root as it need to access databases with sensitive information. pub | ssh [email protected] 'umask 077; cat >>/tmp/authorized_keys' . I entered startx and a GUI session for that end-user was started. Again, as I said, it's entirely possible already using sudo - this works exactly as I want it to except for the fact it changes my user account's . This is working without elogind or libelogind0 and uses seatd and libseat1. When performing administrative tasks and switching to a root or another user using sudo or su, you might encounter issues like “Can't open startx works only as root/sudo. This is because I edited /root/. My boat sank a few days ago, so I have had to deal with this, and been off work. I have copied . Put this in your conf file: [supervisord] user=nobody The user should be a user which exists, but does not have sudo permissions (nobody can work). Need some help. I would like to run a program as a non root user from a script. 04 installed on my PC). Any ideas on how I can get it back to defaulting current user? **Edit: utilizing su <username> changes the user but defaults it in the “root” file The default install provided the components, the user created their . dll) it works fine. x I put the system into init 3 level till problem is fixed. send and intent as root is fairly easy as you also tried. When I try to login, I get this message below; For users other than root, in xrdp session, I don't see complete gnome desktop as shown in the screenshot below. I've set the required config files I can login in console as my user and startx doesn't work (same flashing behaviour), but if I login as root and run startx Gnome launches and graphics works smooth. You would never know something was wrong. Thanks. Also, if I try to sudo startx from the user account, I see three white terminals as I do when I Once logged in as non-root-user, I want to start my GUI (Openbox) via startx and have it login as the non-root-user by typing: sudo startx. 0:44313 and is silent from that point on. Redirecting the output to a file isn't working, and hoarks my terminal, so here's the only output line that looks interesting: xf86EnableIOPorts: failed to set IOPL for I/O Now when I login as root and type "startx" I get a very basic window system (not xfce), with 3 terminals open. xinit xorg. If I have it make a connection to "foo" when the GUI isn't running, it creates a virtual desktop (handy) but the resultant desktop is completely different. Try this on a command line and if it doesn't work, fix it. I can su <username> or whatever the command is but explorer. lshw -C display shows: *-display description: VGA compatible controller product: 82G33/G31 Express Integrated Graphics Controller I'm not sure) from the command line: startx &. When i type it as any other user it doesn't work. ) After a recent system upgrade, I found I could not login and get my normal screen. startx . the user option. I happen to use NoMachine for remote connections. uncomment the existing line in /etc/permissions. I would like to be able to simply type startx without sudo and get logged in to the GUI as the non-root-user. wsl --install Restart your Windows machine. Of course the solution shouldn't prompt for a password. If it works, edit your ~/. Doing sudo startx or sudo su; startx makes the root owner of a file called . If I run it as any other user, CDM loads, requests a choice for so that I can run CDM as normal user and only elevate when starting X. Nobody else. I selected samba file server from the install menu and everything works fine. serverauth. ssh/id_rsa. I've added the user I want to startx with to the tty group. 26-v7+ armv7l Raspbian Current Operating System: After booting my computer and logging in on a virtual console the aplay command works as expected but after running startx only root can run aplay. I work with ssh-keys (this makes it possible to login to a remote host without password authentication while still being very secure!!) Create a ssh-key on your source computer (server) with the following command: ssh-keygen I have enabled root login on Ubuntu 18. /program Now the program will run with root privileges for all users. startx has been deprecated since openSUSE 11. I used startx several time as root while trying to find out why I couldn't use it as Before that my PC used to boot straight into my account without asking for the password (without even showing the GRUB menu since I have only Ubuntu 12. log. And then in TTY 8 I end up wi 1. startx only works as root: rbrasil: Debian: 3: 12-10-2003 07:45 PM: Gnome works but not with startx command: lil_critter99: Linux A few days ago I installed i3-gaps and manually installed each of the libraries necessary to make install it. After doing this I can login back as my regular user and running startx now works fine (only after root user does). Fri Dec 30, 2016 6:13 am . This is your only warning. Wait for it to complete, then create a non-root username/password. Side note: As a programmer you should strive to ensure that programs that run with root privileges are free of security holes, so that they're not vulnerable to buffer overflow exploits, etc. If you look at the output, you'll notice that your user is signed up for several groups and those groups represent extra privileges on the system. profile, replace it with: if [ "$(tty)" = /dev/tty1 ]; then startx fi This will run startx only when logging in to the 1st text console (tty1). ) In a Graphical Session. As root, startx launches xterm aslso, but i can get arround this by starting xorg with the gdm command, every thing seems to work flawlessly. So it seems that on my system it works like you expects things to work and on your system it doesn’t. They can run startx as root but not as a regular user. startx seems to fail unless i use sudo startx. ) When everything works correctly, Xorg will be able to directly open the GPU through /dev/dri, and will talk to systemd-logind through D-Bus to open devices in /dev/input; you The only way "startx" works is as root. 0. all run as root. I have changing the permissions of various files with no Logging in as root and using su -l <myuser> explicitly does not count – if you only do this then the session remains owned by root; device access rights will not be transferred when 'su' is used. HOW TO REPRODUCE: Fresh Arch Linux install from LiveCD. Thank you. But because they are launching Xorg as root, startx only finds the global xinitrc file that contains 3 xterms. Use the GVfs admin backend, just add admin:// to the beginning of the full path to your preferred directory. Start an activity as root (gallery runs as root) Regarding to the issues you have met. If I run pm2 start app. Leafpad will not start if you are logged n via PuTTY, but vi and nano work fine. " startx " will start the Desktop, as long as the Desktop is Make sure you can start an X session when logged in as your preffered user. xinitrc was not executed etc. user If supervisord is run as the root user, switch users to this UNIX user account before doing any meaningful processing. xinit file and one could easily use startx to work only working with xenodm again. Yesterday I tested startx, and in user root Today, when I turn on Linux in the virtual machine, I cannot login as root anymore, only as guest. I don't know if this will help. You shouldn't need to use root to get rid of a segmentation fault. I've made sure the . I've looked at the man page for xauth which I think is what I'm I did get startx to run on boot by adding sudo startx at the end of etc/rc. If startx works, use it. If it does work for root, then I would look if your /home/ is not full. xinitrc file with exec /usr/bin/i3 in the home dir, but I cannot manage to start i3 using just xinit. I am currently running Gentoo Linux. – I've discovered from another question that removing pulseaudio (apt-get remove pulseaudio) magically fixes things (sound works for user pi and root) but no idea why. I erased xorg with pacman -Rsn <packages> before reinstalling it logged in as the user "sam" this changed nothing. I want to automatically start kodi on system start and for this i don't want to start it with root user, so i That's the only thing it should contain if you just want to start the graphical environment. A part of that transition was migrating my chroot jails and schroot configuration. I just did a test. Org X Server 1. I also tried erasing the -I can sort of start session as a normal user if I force it into my current session (pe: startx -- vt1), but I get a black screen: Trying to use any other tty session or login to kill X is fruitless, as I keep having a black screen and I need to force restart the computer (normal user only, root works as itended and I can switch ttys). The best way to do this is typically with gksu or gksudo, as this automatically handles changing HOME to /root and (less importantly) uses a temporary . I guess the reason why your 'su -c "am start xxx"' failed is due to env issues. You must have run startx with root privileges. Connect to MY-SQL using SUDO. To prevent this, you might think you could instead launch the graphical root terminal with: sudo -H gnome-terminal & But this will only work if sudo doesn't have to prompt for a password. How ever, the logs print something like this; #/usr/bin/Xorg root:root 4711 and running SuSEconfig --module permissions afterwards. Try using that full path in your script. I was setting up xinit/startx which I've done a hundred times before according to this guide, and went through the motions of creating a new ~/. Of course you would have to change the owner:group of the file to make it usable for the non-root user after the copy operation. I this this is a permissions issue, but I no sure. xinitrc for that user The easiest solution is to add yourself to the dialout group. When you create a server (and run the server) as root, the underlying files are owned by root. I want to be able to start an X session for a particular user from the terminal and then VNC in to that. So I want to run startx. ; ensure that those rights correspond to the commands you wish to allow, commands allowed in your /etc/sudoers and /etc/sudoers. adbd has a compilation flag/option to enable root access: ALLOW_ADBD_ROOT=1. It seems that if pulseaudio is present, aplay goes to it as pi and bypasses it as root, but why is that, or why doesn't pulseaudio work, or what prices will I pay in the future for removing pulseaudio without Check your Hierarchy to see if the object is the top-level parent or a child of another object. js the right way. This way only master process runs as root. 2) Quote: # ++ hostname -f # hostname: Host name lookup failure Humm not good. Do your research before stating something! Reply reply Herbert_Krawczek • If you really want to (and it is a really bad idea), you could just login as root and startx. Visit Stack Exchange Trying to start headless X server (driver "Dummy" from package xorg-x11-drv-dummy) as non-root user from ssh session on Centos 7 machine with command like $ nohup Xorg -noreset +extension GLX +ext This will work for leafpad, nano, etc. As you’d expect, files owned by root, the superuser, shouldn’t be able to be accessed indiscriminately by non-root users; this is why you I'm running slackware 13. I agree that the only viable way to handle this is by calling setuid system function. And then in TTY 8 I end up wi Hi a am working with VMware 4. Edit: also whenever I run startx on root and exit out of the window manager, the tty If it doesn't work as non root, then it's another problem. I tried deleting the . : sudo chmod 700 /path/to/app This would give root the right to read, write and execute while all other users If startx(1) works for the root user, there is most likely a /root/. First as As normal user, startx launches xterm instead of gnome, which i have installed. Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Commented Mar 12, 2014 at 16:48. I'm new to continous integration on iOS, I try to run build with gitlab-runner and use shell as executor but I got issue that pod cannot run as root I am sure that I am not installing cocoapods with sudo and I try run whoami at before_script and that's right my runner run as root How can I make gitlab-runner not run as root? Should something want root privileges the "pi" user is the only choice in the password menu (which won't work while "pi" is locked by passwd). Okay, so you have discovered that if you type "startx" as a normal user, things work, but if you type "xinit", things don't work unless you're root, and you really don't want to be root. As non-root I After booting my computer and logging in on a virtual console the aplay command works as expected but after running startx only root can run aplay. Thanks for the help, can provide any aditional info as needed. 2 system in runlevel 3. With xxxx being a new session number each time. 10 with gnome desktop, works fine. It just shows Now listening on https://0. Then I installed xorg and fluxbox. Anyone could help-me? I have to When running startx or xinit, no user is able to open x besides root. If root is the only thing that The command vncserver :1 -localhost will only work under two conditions: As for this issue, it happens to be that files ownership is either current user or root only. In fact, running random commands as root is almost certainly the cause of this problem. The default installation usually works, you only need to start (by root) xdm/gdm/lightdm or another display manager, and a user can log in. Just don't expect this to work in file explorer unless you have direct permissions to the file or directory. Xauthority from my root folder to my user one and chowned it, created the files as seen here, purged the packages and reinstalling; but nothing works. When you ran ipython notebook for the first time it was under root. imac. Edit: so creating a new user works. Xauthority required for X session login by xauth; NEVER use sudo for opening graphical applications. It works fine when I run startx as root, however I have been told that this is unsafe due to privilege escalation vulnerabilities in the xorg server, and that the preferred way is to start it as a user. I had to patch the calls to setuid(), setgid(), setgroups() and the capability drops out of the binary myself to I have built a htpc with console installation of debian 10 kernel 5. Break this habbit. Currently it starts as a root user and To solve this, just run login instead of su to start a new shell as a top process. OK, let me take a guess here. I got your question completely. I like KDE so that is the default selected Share your knowledge at the LQ Wiki. end excerpt I have tested it and it works, without doing the above, you can be in runlevel 3 but you wont be able to startx as a normal user. In their users . That transition does however not seem to be "plug and play". In case the information is important, I am It only works as root. You don't need to call sudo (not that it should hurt - root usually has sudo permissions). pi@raspberrypi:~ $ startx X. I can go to tty7 and stare at the black screen and I can go back to tty1 (if that's where I ran startx) and look at the X output. vim and settings in ~/. lock belongs to the root-user und because of that a non-root-user can have access to it. Ask Question Asked 15 years, 2 months ago. But there is any option to save this directory as default so that I don't have to give it each time? My wireless drivers are stored on my external hard drive, and I could only retrieve them as root. whoami prints root. Viewed 744 times 0 I Move war file with your application to tomcat webapps directory (its a directory where was old ROOT folder, on my machine: ~/stack/apache-tomcat/webapps) War file must have a name ROOT. Modified 8 years, 3 months ago. When I am in console only mode I can switch between the tty screens normally, but when I decide to do startx on one of those ttys, I have to stay in tty7 or else I won't be able to go back to tty7. So I uninstalled docker, removed /var/lib/docker, and re-installed docker, without success: I can still run commands as sudo, but not as a simple user. If type the path to startx i get the following: $ /usr/X11R6/bin/startx No, I can't. serverauth missing' complaints before, but did nothing to alter the situation; only now, running startx as user gives no error, only 'connection to X server lost'. I can log in as my non-privileged user and startx. ) When everything works correctly, Xorg will be able to directly open the GPU through /dev/dri, and will talk to systemd-logind through D-Bus to open devices in /dev/input; you In DSM Version 6 you can still login as root when using RSA keys. The startx command only works as root. Welcome to the most active Linux Forum on the web. also I tried installing MATE and running mate-session on the user account but it couldn't open the display. My goal is to make the default laptop display run again, using the Intel hd graphic card and an additional monitor using the Nvidia card (but I would be happy as well if only the laptop display would work again). Another workaround worth to try is to reset your gnome settings in case you messed them up For example, if you have the startx command in ~/. It was. The only way I can see as a workaround is to create a macro to output the text; which I find too kludgy to port. I am only able to launch startx as the root user, but I would like to run it as a normal user instead, because apparently xrdp won't let me open a remote session when X is running as root. On a development machine, you should not install and run Node. xinitrc file in Startx only displays GUI if killed and started again. After that Root user on Ubuntu in general is locked so no user can login as root thus su is not likely to work. root will create files which will be owned From the youtube tutorials and from the wiki, you’re recommended to use a non-root user to start servers. Suppose if you want to mount only paritcular partition then use below command. xinitrc of your user account. Skip to find answers and collaborate at work with Stack Overflow for Teams. 113-sun8i #16 SMP PREEMPT Tue Jun 13 14:15:57 CEST 2017 armv7l armv7l armv7l GNU/Linux) with openbox installed on it. The problem is that the program starts only if I add --user-data-dir with some parameter, for example I use: VSCode/Code and it works. The problem is, the samba daemon is running as root which has me a little nervous. I then tried to use startx as a user and it still failed. As documented in Environment variables in spawned processes Hello, trying to get startx working on debian. serverauth files for No, you are supposed to be able to run startx as regular user, and have it start whatever desktop you have configured. xinitrc ~ ( " file does not exist ". smbd and nmbd are enabled and started. 1 with XFCE installed, I removed MDM to enable booting in text mode. However I don't want to give the developer sudo access to the entire server, but rather only root context to run this bash file. exe. When I login as a normal user and type "startx" I get nothing (black screen). And that's why you shouldn't run sudo startx. It is no surprise now that whenever you run Jupyter as a non-root user, he fails to write to those files which results in the errors that you see. If I input my non-root user credentials, the session closes immediately after connecting. org FAQ messages page, in that page explained to deal with these two errors like each others: 1 - "Server is already active for display 0" 2 - "Cannot establish any listening sockets" It seems that X server is running, but you cannot just type startx -- :1 and start a new one, you should remove these I used to have a working container that started an X11 server. Graphics & Display. The problem is, it won't let me write to tty0. I tried to put each of these files one-by-ne inside /rc. Now when i run the program as root, it works fine. The screen I got after typing my password was low-resolution, had no Dash and Ctrl-Alt-T did not open a terminal. After I upgraded to balenaOS 2. You could try the following method, it solved my problem as well. Need to have debian installed for work, but I’d like to do everything I can (well, package management-wise at least) with Nix if possible. Commented Mar 12, 2014 edit /etc/sudoers file as root use visudo -f /etc/sudoers. log because I am quite illiterate both in My only minimal build is a net install from antiX 17, which is set up as Sid. sudo startxfce4 does works perfectly but it logs me in the graphical mode as root. Xauthority in your user's home directory Edit — thank you again r/gentoo. So it's good it The result is non-root Docker running in WSL. I then installed xfce and ran startx on root account. jrbupx hnfwg nbqhhp yjkgpm vtivg hyus guxol pfuzkc ixnlk ivngxp

Pump Labs Inc, 456 University Ave, Palo Alto, CA 94301