Bug 8355 - Package installation fails if run in NFS home
Summary: Package installation fails if run in NFS home
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Server Installer (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
Depends on:
Reported: 2024-05-30 08:51 CEST by Pierre Ossman
Modified: 2024-06-04 13:12 CEST (History)
0 users

See Also:
Acceptance Criteria:


Description Pierre Ossman cendio 2024-05-30 08:51:14 CEST
If tl-setup is run with the working directory that it cannot read, then it will fail when trying to install packages:

> 2024-05-30 08:45:39,872: Preparing...
> 2024-05-30 08:45:41,927: Downloading...
> 2024-05-30 08:45:42,035: RPM: error: Unable to open current directory: Permission denied
> 2024-05-30 08:45:42,045: DNF error: Transaction test error:
> 2024-05-30 08:45:42,045:   Errors occurred during test transaction.

The directory in question has these permissions:

> drwx--x--x. 76 ossman ossman 12288 May 30 08:45 .
Comment 1 Pierre Ossman cendio 2024-05-30 08:52:10 CEST
Note that this requires NFS as otherwise the fact that we run as root will override any permission bits.
Comment 2 Pierre Ossman cendio 2024-05-30 08:52:50 CEST
The quick fix is probably doing chdir("/") early to have a safe working directory.

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