Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Broken system: no root account, read only user account
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 22, 23, 24 ... 26, 27, 28  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Thu Sep 19, 2013 8:20 pm    Post subject: Reply with quote

DISPLAYMANAGER="gdm"
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Sep 19, 2013 8:26 pm    Post subject: Reply with quote

try login via gdm as testuser into gnome do you appear to be in gnome?
if so is applications populated?
does alt-F2 yield a dialog box?
if so does entering gnome-terminal produce a terminal?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Thu Sep 19, 2013 8:44 pm    Post subject: Reply with quote

'gdm' from testuser account (from black screen login) results in error:
GDM file gdm-daemon-config.c: line 2041: cannot run seteuid to 0: operation not permitted.

startx produces KDE, where Applications are populated, buyt terminal is still not functional. Web browser works just fine.


Last edited by auddoula on Thu Sep 19, 2013 8:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Sep 19, 2013 8:46 pm    Post subject: Reply with quote

gdm needs to be run by root, sorry
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Sep 19, 2013 8:49 pm    Post subject: Reply with quote

in the boot terminal, logged in as root,
Code:
useradd -m -G users,wheel,audio,video,tty,cdrom,cdrw -s /bin/bash moose
passwd moose
cp /home/testuser/.xinitrc /home/moose/.xinitrc
cat /home/moose/.xinitrc

check that is pointed at gnome, edit if not, then run
Code:
gdm

login as moose in the gdm window

same questions
_________________
Defund the FCC.


Last edited by DONAHUE on Thu Sep 19, 2013 9:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Thu Sep 19, 2013 8:59 pm    Post subject: Reply with quote

A couple of questions:
1. since .xinitrc is copied by the root, it is owned by the root. Should the user not own it?
2. I don't see 'gdm' option in .xinitrc', it is startkde or gnome-session. I assume you meant the latter.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Sep 19, 2013 9:06 pm    Post subject: Reply with quote

auddoula wrote:
A couple of questions:
1. since .xinitrc is copied by the root, it is owned by the root. Should the user not own it? users can execute it no matter who owns it
2. I don't see 'gdm' option in .xinitrc', it is startkde or gnome-session. I assume you meant the latter.
exec gnome-session would be enabled, startkde commented, sorry for the slang
_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Thu Sep 19, 2013 9:10 pm    Post subject: Reply with quote

I have done this. I also changed the ownership of .xinitrc to 'monkey' (sorry, not moose) .After gdm from the root account, I get a GUI where I choose Gnome as my session.
So, as 'monkey', I am in Gnome, the applications are populated, ALt-F2 yield a command line, gnome-terminal brings up a gnome-terminal, but no prompt (getpt failed, no such file or directory).

I should add 'xv' works from the command line just fine, as does the internet browser..


Last edited by auddoula on Thu Sep 19, 2013 9:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43395
Location: 56N 3W

PostPosted: Thu Sep 19, 2013 9:11 pm    Post subject: Reply with quote

auddoula,

Only root can run display managers, including GDM
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Sep 19, 2013 9:12 pm    Post subject: Reply with quote

getpt failed, no such file or directory no clue as to which file or directory? I'll look back also
_________________
Defund the FCC.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43395
Location: 56N 3W

PostPosted: Thu Sep 19, 2013 9:12 pm    Post subject: Reply with quote

auddoula,

Is your user in the tty group ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Thu Sep 19, 2013 9:15 pm    Post subject: Reply with quote

NeddySeagoon wrote:
auddoula,

Is your user in the tty group ?

Yes:
tty wheel audio cdrom video cdrw users monkey
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Sep 19, 2013 9:20 pm    Post subject: Reply with quote

Code:
cat /etc/fstab
any devpts in it? should not be now

ls -al /dev/pts
total 0
drwxr-xr-x 2 root root 0 Sep 18 18:26 .
drwxr-xr-x 16 root root 6300 Sep 18 22:26 ..
crw--w---- 1 root tty 136, 0 Sep 19 21:19 0
yours similar??
_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Thu Sep 19, 2013 9:24 pm    Post subject: Reply with quote

I don't see any devpts in fstab
but
ls -al /dev/pts gives
similar output


Last edited by auddoula on Thu Sep 19, 2013 9:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Sep 19, 2013 9:28 pm    Post subject: Reply with quote

Code:
emerge -s udev-init-scripts

if not installed
Code:
emerge -1av udev-init-scripts
/etc/init.d/udev-mount restart # or reboot after
rc-update add udev-mount sysinit


Code:
/etc/rc.conf | wgetpaste

_________________
Defund the FCC.


Last edited by DONAHUE on Thu Sep 19, 2013 9:34 pm; edited 3 times in total
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Thu Sep 19, 2013 9:29 pm    Post subject: Reply with quote

ls -la /dev/pts is similar except that it is missing tty!! perhaps, this is the clue
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Thu Sep 19, 2013 9:43 pm    Post subject: Reply with quote

DONAHUE wrote:
Code:
emerge -s udev-init-scripts

if not installed

Installed..
Code:

rc-update add udev-mount sysinit

rebooted but it was already running.

Quote:
Code:
/etc/rc.conf | wgetpaste

http://bpaste.net/show/133871
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43395
Location: 56N 3W

PostPosted: Thu Sep 19, 2013 9:43 pm    Post subject: Reply with quote

auddoula,

The content of /dev/pts is dynamically ceated.

When a process needs a pty, its asks the kernel for one by accessing /dev/ptmx and its pty is put into /dev/pts with the owner as the user, and the group as tty.
Hmm ... uses should not need to be in the tty group then

Code:
drwxr-xr-x  2 root root      0 Sep 19 10:48 ./
drwxr-xr-x 18 root root   6140 Sep 19 11:08 ../
crw--w----  1 roy  tty  136, 0 Sep 19 22:11 0
crw--w----  1 roy  tty  136, 1 Sep 19 22:40 1
c---------  1 root root   5, 2 Sep 19 10:48 ptmx


Do you have the other part - with the correct permissions ?

Code:
$ ls /dev/ptmx -l
crw-rw-rw- 1 root tty 5, 2 Sep 19 22:42 /dev/ptmx

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Thu Sep 19, 2013 9:46 pm    Post subject: Reply with quote

NeddySeagoon wrote:


Do you have the other part - with the correct permissions ?

Code:
$ ls /dev/ptmx -l
crw-rw-rw- 1 root tty 5, 2 Sep 19 22:42 /dev/ptmx

Yes, it looks essentially identical.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Fri Sep 20, 2013 2:01 am    Post subject: Reply with quote

Let me know if you have any further ideas. Is it possible to make the user a superuser and see if things work? After that we can try to downgrade to regular user..
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Fri Sep 20, 2013 3:44 am    Post subject: Reply with quote

[quote="auddoula"]I have done this. I also changed the ownership of .xinitrc to 'monkey' (sorry, not moose) .After gdm from the root account, I get a GUI where I choose Gnome as my session.
So, as 'monkey', I am in Gnome, the applications are populated, ALt-F2 yield a command line, gnome-terminal brings up a gnome-terminal, but no prompt (getpt failed, no such file or directory).

repeat this sequence
then <ctrl><alt><F4>
will produce a new terminal window
login as root
ls -al /dev/pts
Does it resemble:
Quote:
ls -al /dev/pts
total 0
drwxr-xr-x 2 root root 0 Sep 19 21:37 .
drwxr-xr-x 16 root root 6300 Sep 20 01:38 ..
crw--w---- 1 root tty 136, 0 Sep 20 03:24 0
?? If so
Code:
chown monkey:tty /dev/pts/0

then <ctrl><alt><F7>
back in gnome, still see a terminal? with a prompt?
if so,
Code:
ls -l /dev/pts
is the owner of tty now root?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Fri Sep 20, 2013 2:47 pm    Post subject: Reply with quote

Quote:
ls -al /dev/pts
total 0
drwxr-xr-x 2 root root 0 Sep 19 21:37 .
drwxr-xr-x 16 root root 6300 Sep 20 01:38 ..

Assuming, I did not make a mistake along the line, I get similar to above but missing tty, i.e. there is no root tty in the entry.

Now, if I logout as a user from Gnome, and log back as the root into Gnome. I get my terminal within Gnome environment with no problems, and ls -la produces the same result as above, i.e. without the tty entry.. interesting.

From a root terminal I can run programs like firefox. but If i 'login monkey' from that terminal within Gnome, and then try to run firefox, I get an error no 'display specified'.

I thought I could bypass the current problem in this manner... No such luck.

p.s. I understand now why you prefer Gnome. I am likely to switch to it in the future.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Fri Sep 20, 2013 5:35 pm    Post subject: Reply with quote

does
Code:
cat /proc/consoles
resemble
Quote:
tty0 -WU (EC p ) 4:7

boot to terminal run
Code:
xdm
login as monkey for gnome any change?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
auddoula
Guru
Guru


Joined: 30 Apr 2008
Posts: 387

PostPosted: Fri Sep 20, 2013 6:22 pm    Post subject: Reply with quote

DONAHUE wrote:
does
Code:
cat /proc/consoles
resemble
Quote:
tty0 -WU (EC p ) 4:7

it is exactly the same... I am out of my office now, but I will try xdm (instead of gdm).
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Fri Sep 20, 2013 6:34 pm    Post subject: Reply with quote

ok
trying to find exactly what calls /dev/ptmx when you login as user and start an xsession; whatever calls /dev/ptmx should pass your identity as monkey and and the call should create a /dev/pts/tty owned by monkey group tty. which does not happen.

I umounted /dev/pts and am still able to gnome as root but have gnome terminal behavior like yours as user.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2, 3 ... 22, 23, 24 ... 26, 27, 28  Next
Page 23 of 28

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum