Bug 2594 - Traceback on unreadable user home directory
Summary: Traceback on unreadable user home directory
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: VSM Agent (show other bugs)
Version: trunk
Hardware: PC Linux
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-05 10:01 CET by Erik Forsberg
Modified: 2022-05-17 13:00 CEST (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Erik Forsberg cendio 2007-12-05 10:01:30 CET
If a user has a home directory that has the following permissions:

stat /home/user0
  File: `/home/user0'
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: fd00h/64768d    Inode: 5472824     Links: 2
Access: (0700/drwx------)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2007-12-04 13:26:29.000000000 +0100
Modify: 2007-12-03 17:06:53.000000000 +0100
Change: 2007-12-03 17:06:53.000000000 +0100

..the session will fail, with an error message in xinit.log:

Exception while starting child!
Traceback (most recent call last):
  File "/opt/thinlinc/modules/thinlinc/vsm/sessionstart.py", line 47, in start
    self.start_xvnc()
  File "/opt/thinlinc/modules/thinlinc/vsm/sessionstart.py", line 340, in start_xvnc
    os.chdir(self.session_env['HOME'])
OSError: [Errno 13] Permission denied: '/home/user0'

This could be handled in a nicer way. Some possible actions:

*) If create_homedir is True, we could fix the permissions. On the other hand, if an administrator has forbidden a user access to her own home directory, perhaps we should respect that and..

*) Just give an error message in the agent log and return with error to VSM Server.

Note You need to log in before you can comment on or make changes to this bug.