LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 07-05-2012, 07:54 AM   #1
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 836

Rep: Reputation: 167Reputation: 167
Unhappy Can start xterm/Terminal as root but not as normal user


Basically what the title says I am running xfc4.10, X starts fine for normal user and I can run xapps ( chrome, spacefm etc ), but if I try to run xterm I get a blank window with a cursor that does nothing, if I try to run Terminal (the xfce version) it flicks up then closes.
If I login and start X as root every thing works fine, if I open a terminal ( xtrem or Terminal ) and su to my normal user account and the try to start a new xterm i get this error:Cannot chmod /dev/ttyp1 to 666 currently 620: Operation not permitted ( and yes I have tried setting the permissions first but the don't stick )
and a dead window again, both the root and user are members of the same groups:bin sys kmem tty tape daemon floppy disk lp dialout audio video utmp usb cdrom console cdrw mail news users
If I run in a chroot environment every thing is fine.
I have tried creating a new user in case the problem was with permissions but got the same results.
I am working from this:http://cblfs.cross-lfs.org/index.php/Main_Page
Aside from this and automounting ( which is a whole 'nother kettle of fish! ) everything seems to be working fine.
 
Old 07-06-2012, 05:34 AM   #2
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 836

Original Poster
Rep: Reputation: 167Reputation: 167
Well after a LOT of googling and rebooting I found the answer the /dev/pts folder was not being created so after adding it to /lib/udev/devices so that it gets created in /dev by udev early on in the boot, everything now works fine.
 
Old 05-21-2013, 04:08 AM   #3
ssanthshtech
Member
 
Registered: Jan 2013
Location: bangalore,india
Distribution: Ubuntu 12.4
Posts: 35

Rep: Reputation: Disabled
disabling root

hi i 2 have same problem

From Linux From Scratch build a minimal system for running my application with xinit. But struck on disabling root permission.

Need my minimal lfs as ubuntu.

when ubuntu boots login-screen comes then we enter username and password it will redirect to Desktop from ter when we open a terminal, Terminal will open as $--> non root-user from ter we access #--> root via sudo or su.

Same as ubuntu when my lfs boots want to display my application [xinit-window launcher (same as login screen in ubuntu but, in my case without asking user name and password {autologin})] after that when i access terminal it should display as $--> non-root user then i want to use sudo to access root.

Help me to solve this somehow similar to ur problem.
 
Old 05-21-2013, 05:35 AM   #4
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 836

Original Poster
Rep: Reputation: 167Reputation: 167
This post:
http://www.linuxquestions.org/questi...ot-4175439605/
will help with the auto login, as for disabling the root account, why? just set a good password ubuntu's ridiculous disabling of the root account and banning anyone on their forums for even hinting at how to enable it is one of the main reasons I stopped using ubuntu years ago!
 
  


Reply

Tags
error, root, user, xorg, xterm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gnome-terminal is starting up in / konsole and xterm start up in ~ as desired dasy2k1 Linux - General 2 08-02-2010 08:43 PM
terminal (xterm) opens in /root directory? glenn69 Linux - Newbie 1 09-23-2008 05:48 AM
X won't start as normal user, only as root. juanjavier_xxx Debian 4 11-04-2007 05:10 AM
Normal user cannot start KDE - root can tagit Linux - Newbie 3 12-26-2003 08:12 PM
Normal user cannot start KDE - root can tagit Debian 1 12-26-2003 03:14 PM


All times are GMT -5. The time now is 01:59 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration