LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-15-2007, 07:29 AM   #1
dguy
Member
 
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 119

Rep: Reputation: 16
Question Fluxbox won't start for user with remote home directory


Hi folks,

I think I have this down to a permissions problem, but I can't isolate & fix it. Would appreciate any suggestions...


For all user accounts, my desktop system uses a remote-mounted home directory via NFS. Attempts to log in as a user merely cause a bit of screen flickering followed by a return to X's login prompt. A terribly helpful "permission denied" entry exists in the user's .xsession-errors file, with a reference to a commented out line in ~/.fluxbox/startup.

Now if I create a local home directory for the user, the login is successful.

Comparing the remote home to the local home, it appears that fluxbox is unable to create ~/.fluxbox/init, keys, menu, and slitlist when the remote home is mounted.

The default files for init, keys, and menu are all owner, group, and world-readable; the user does not appear to have any problem manipulating files in their home directory from a terminal.

Any ideas? This is driving me crazy!
 
Old 07-20-2007, 02:36 AM   #2
omnio
Member
 
Registered: Feb 2007
Location: $HOME
Distribution: Hardened Gentoo
Posts: 66
Blog Entries: 1

Rep: Reputation: 16
It still looks like some permission problem; do this test to figure out what's happening:


-- THIS IS ONLY FOR TESTING PURPOSES; THIS METHOD IS INSECURE --

On the server side:
-------------------
1. enable rw,no_root_squash in /etc/exports
2. create a test user
3. chmod -R 1777 the directory to be exported containing the test user's home

And which one is that commented out line in ~/.fluxbox/startup?

Last edited by omnio; 07-20-2007 at 02:40 AM.
 
Old 07-23-2007, 05:22 PM   #3
dguy
Member
 
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 119

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by omnio
On the server side:
-------------------
1. enable rw,no_root_squash in /etc/exports
2. create a test user
3. chmod -R 1777 the directory to be exported containing the test user's home
With the above set up, I receive the same behavior as reported in my first post.

Out of curiosity, what purpose does setting the sticky bit serve?



Quote:
And which one is that commented out line in ~/.fluxbox/startup?
I think I may be misinterpreting the log file, and it's actually referring to a line in /usr/X11R6/bin/startfluxbox. The reason why I say this is that when working with the test user account, the message in .xsession-errors refers to a line number which would be well past EOF in ~/.fluxbox/startup.

Anyhow...

The nature of the errors captured by .xsession-errors are identical for either the test user or a legit user, but they refer to different locations in startfluxbox.

For the legit user, it indicates line 27. For the test user, it indicates line 89. Interestingly enough, each line is exec "$startup".
 
Old 07-23-2007, 07:22 PM   #4
omnio
Member
 
Registered: Feb 2007
Location: $HOME
Distribution: Hardened Gentoo
Posts: 66
Blog Entries: 1

Rep: Reputation: 16
Quote:
Originally Posted by dguy
Out of curiosity, what purpose does setting the sticky bit serve?
Not much; just a workaround for no_root_squash, disallowing other users to delete files which they don't own (which would happen otherwise on the nfs mounted dir no matter of the permissions - one reason no_root_squash it's insecure).

- Have a look at your /etc/fstab; maybe between the options for the nfs dirs is also "noexec"?

- Do a simple test: once a user homedir is mounted, create a simple shell script to echo something (make it executable) and try to execute it; see what happens.

- I encountered the same problem, but in my case it wasn't about nfs mounted homedirs, but a grsec kernel - the TPE was blocking any execution in the home directories (including ~/.fluxbox/startup).

hth - till soon
 
Old 08-15-2007, 09:08 AM   #5
dguy
Member
 
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 119

Original Poster
Rep: Reputation: 16
Thumbs up

Quote:
Originally Posted by omnio View Post
- Have a look at your /etc/fstab; maybe between the options for the nfs dirs is also "noexec"?
It took me a while to get back to this, but the above comment sent me in the right direction.

I am mounting the remote directory via autofs, and had the -user option enabled in the map file without realizing that -user also implies -noexec. D'oh!

Thanks for your help!
 
  


Reply



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
Active Directory User Cannot Write to Samba Home Directory jonwatson Linux - Networking 2 12-19-2006 12:40 PM
ssh public key authentication to different remote home directory shawn_t Linux - Networking 2 03-20-2005 03:39 PM
Remote home directory - pros & cons? utabintarbo Linux - Networking 2 01-31-2005 02:10 PM
cannot start kdeas user ,can start icewm,fluxbox jackren Debian 1 02-29-2004 11:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 04:00 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration