You are not logged in.
I recently reinstalled Archlinux due to a new build. Anyway, every time I open up a console or a file manager, it starts out in / instead of my /home folder. This happens with urxvt, terminal, pcmanfm, and thunar.
Any ideas on how to fix this?
Thanks
"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website Configs
Forum Admin: Bruno's All Things Linux
securitybreach<a>archlinux.us
Offline
how are you running X? if you're using startx from tty and you're in / then all of your terminals and filers will open in that location (just like if you're in /usr). just a thought
Main Arch Setup: HP Pavillion p7-1209, Quad-Core i3-2120 3.3Ghz, 8GB RAM, 1TB HDD, Intel Graphics
Laptop Arch Setup: Gateway lt3103u Netbook, AMD Athlon64 1.2Ghz, 2GB RAM, 250GB HDD, ATI X1270 R600
Offline
Good ideal but when I login as user and startx, I am in the /home/username directory. So its not that.
"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website Configs
Forum Admin: Bruno's All Things Linux
securitybreach<a>archlinux.us
Offline
Check /etc/passwd to see what home directory is defined your user
Offline
Check /etc/passwd to see what home directory is defined your user
Looks fine to me
╔═ comhack@Cerberus 03:43 PM
╚═══ /-> cat /etc/passwd | grep comhack
comhack:x:1000:100::/home/comhack:/bin/bash
Last edited by securitybreach (2011-04-02 19:45:01)
"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website Configs
Forum Admin: Bruno's All Things Linux
securitybreach<a>archlinux.us
Offline
Don't abuse the cat!
grep comhack /etc/passwd
:-)
Does this happen for root too?
Let's try again
cd
xterm
pwd
what's the directory you're in?
Last edited by karol (2011-04-02 20:04:48)
Offline
Don't abuse the cat!
grep comhack /etc/passwd
:-)
Does this happen for root too?
Let's try again
cd xterm pwd
what's the directory you're in?
Yes it happens as root also. If I run the commands I end up in the root's home directory since the command cd brings you to the home directory. In this case, using root and running your commands puts me in /root/:
╔═ comhack@Cerberus 03:10 PM
╚═══ /-> su
Password:
[root@Cerberus /]# cd
[root@Cerberus ~]# pwd
/root
Last edited by securitybreach (2011-04-02 20:14:44)
"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website Configs
Forum Admin: Bruno's All Things Linux
securitybreach<a>archlinux.us
Offline
So when exactly do you start in / ? Just after login?
grep DEFAULT_HOME /etc/login.defs
DEFAULT_HOME (boolean)
Indicate if login is allowed if we can't cd to the home directory. Default in no.If set to yes, the user will login in the root (/) directory if it is not possible to cd to her home
directory.
Offline
I am in my /home directory until I startx, then the apps open in / instead. After running your command, I get:
╔═ comhack@Cerberus 03:44 PM
╚═══ /-> grep DEFAULT_HOME /etc/login.defs
DEFAULT_HOME yes
The output is also yes for root as well. I have no problem running cd to get back to ~/ .
Last edited by securitybreach (2011-04-02 20:19:18)
"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website Configs
Forum Admin: Bruno's All Things Linux
securitybreach<a>archlinux.us
Offline
https://bbs.archlinux.org/viewtopic.php … 74#p912374
I don't think I get it, you wrote that you start X in your home directory.
What is the directory you type 'startx' in?
╔═ comhack@Cerberus 03:10 PM ╚═══ /-> su Password: [root@Cerberus /]# cd [root@Cerberus ~]# pwd /root
You forgot to run xterm between those two commands.
Offline
So when exactly do you start in / ? Just after login?
login manpage wrote:If set to yes, the user will login in the root (/) directory if it is not possible to cd to her home directory.
I am not understanding the second part. Should it be yes or no?
"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website Configs
Forum Admin: Bruno's All Things Linux
securitybreach<a>archlinux.us
Offline
https://bbs.archlinux.org/viewtopic.php … 74#p912374
I don't think I get it, you wrote that you start X in your home directory.What is the directory you type 'startx' in?
securitybreach wrote:╔═ comhack@Cerberus 03:10 PM ╚═══ /-> su Password: [root@Cerberus /]# cd [root@Cerberus ~]# pwd /root
You forgot to run xterm between those two commands.
I use startx to start Openbox. Once openbox is started, every app opens in / including consoles. I did use your commands, and that is the output from xterm. The pwd part was done in xterm.
Last edited by securitybreach (2011-04-02 20:24:09)
"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website Configs
Forum Admin: Bruno's All Things Linux
securitybreach<a>archlinux.us
Offline
how are you running X?
You still have yet to answer this question (starting rather, not "running"). I'm going to go out on a limb and assume that you're using autologin and startx from inittab and failing to create a login session for the user.
Offline
No I am just using startx from tty1. Nothing more. I start out in /home/comhack but after running startx and openbox loads, the problem arrises.
"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website Configs
Forum Admin: Bruno's All Things Linux
securitybreach<a>archlinux.us
Offline
After boot, I log in as my user then startx. When I login in to tty, I am in /home/comhack.
Last edited by securitybreach (2011-04-02 20:26:05)
"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website Configs
Forum Admin: Bruno's All Things Linux
securitybreach<a>archlinux.us
Offline
Let's start from the beginning
- when you turn on your computer do you login to the console or straight into X?
- when you login, what directory are you in?
- if you now run startx and open xterm, what directory are you in?
If DEFAULT_HOME is set to yes you will be able to log in, even if your $HOME is "unavailable". You will be put in / in this case.
Offline
--Login to the console
--/home/comhack
--I am in /
Last edited by securitybreach (2011-04-02 20:27:02)
"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website Configs
Forum Admin: Bruno's All Things Linux
securitybreach<a>archlinux.us
Offline
I am heading out to work, Will check back when I get home.
Thanks
"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website Configs
Forum Admin: Bruno's All Things Linux
securitybreach<a>archlinux.us
Offline
Bump...
I am back home now.
"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website Configs
Forum Admin: Bruno's All Things Linux
securitybreach<a>archlinux.us
Offline
Any ideals?
"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website Configs
Forum Admin: Bruno's All Things Linux
securitybreach<a>archlinux.us
Offline
same problem here.. just installed arch
Arch - pronounced 'ark' as in Architecture.
Offline
Please watch the Thread Bumping You can avoid going awry of the rules if you post to tell us of your attempts to solve the problem or to provide new information.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
I've got this occuring as well now that I think of it. I always start in ~ and when I cd, I land in /. It doesn't really bother me but would be nice to know how this is fixed. Yeah Just realized this thread is older than hell due to bumpage.
Last edited by xs (2011-04-07 03:44:20)
I like pie. Especially with a side of Arch.
Offline