Bug 692594 - /etc can be read only
Summary: /etc can be read only
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: samba
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Guenther Deschner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 692326
TreeView+ depends on / blocked
 
Reported: 2011-03-31 16:07 UTC by Bill Nottingham
Modified: 2014-03-17 03:27 UTC (History)
5 users (show)

Fixed In Version: samba-3.5.8-68.fc15.1
Doc Type: Bug Fix
Doc Text:
Prior to this update, Samba could fail to start when the /etc/ directory was a read-only file system. This occurred because Samba checked at start-up if the user had write permissions to the /etc/samba/smb.conf file. With this update, Samba checks if the root user is running the start-up script. Now Samba is started successfully when run by the root user.
Clone Of:
Environment:
Last Closed: 2011-04-14 13:42:40 UTC
Type: ---


Attachments (Terms of Use)

Description Bill Nottingham 2011-03-31 16:07:24 UTC
Description of problem:

/etc/init.d/smb and /etc/init.d/nmb:

# Check that we can write to it... so non-root users stop here
[ -w /etc/samba/smb.conf ] || exit 4

/etc is allowed to be read-only, and samba should still run in this case.

Version-Release number of selected component (if applicable):

3.6.0

Comment 1 Simo Sorce 2011-04-06 15:59:10 UTC
Günther pushed a fix on Monday, should be fixed when the package gets to stable.

Comment 2 Eva Kopalova 2011-05-04 14:03:19 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Prior to this update, Samba could fail to start when the /etc/ directory was a read-only file system. This occurred because Samba checked at start-up if the user had write permissions to the /etc/samba/smb.conf file. With this update, Samba checks if the root user is running the start-up script. Now Samba is started successfully when run by the root user.


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