Bug 560180

Summary: transmission-daemon service fails to start
Product: [Fedora] Fedora Reporter: Siddhesh Poyarekar <spoyarek>
Component: transmissionAssignee: Ankur Sinha (FranciscoD) <sanjay.ankur>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: jspaleta, metherid, mnewsome, sanjay.ankur
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.83-2.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-09 05:10:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to use sudo instead of su in transmission-daemon initscript
none
init script patch none

Description Siddhesh Poyarekar 2010-01-30 04:27:33 UTC
Description of problem:
Transmission daemon service does not start, giving the following error:

[siddhesh@spoyarek rpmbuild]$ sudo service transmission-daemon start
Starting transmission-daemon: This account is currently not available.
                                                           [FAILED]

Version-Release number of selected component (if applicable):
transmission-daemon-1.82-2.fc13.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Issue the command 'service transmission-daemon start' as root
  
Actual results:
[siddhesh@spoyarek rpmbuild]$ sudo service transmission-daemon start
Starting transmission-daemon: This account is currently not available.
                                                           [FAILED]

Expected results:
[siddhesh@spoyarek rpmbuild]$ sudo service transmission-daemon start
Starting transmission-daemon: [OK]

Comment 1 Siddhesh Poyarekar 2010-01-30 04:32:47 UTC
This is happening because the su command to start transmission-daemon as the 'transmission' user tries to launch a subshell to execute the command in. There are two ways to fix this:

1) Use sudo instead of su: Attaching a patch for this. But it gives a password prompt for the transmission user if you accidentally start it as a normal user. Also, you might need to put a dependency on sudo

2) Install the transmission-daemon binary as setuid transmission. This seems like the 'right' way IMO

Comment 2 Siddhesh Poyarekar 2010-01-30 04:34:32 UTC
Created attachment 387701 [details]
Patch to use sudo instead of su in transmission-daemon initscript

Comment 3 Rahul Sundaram 2010-02-01 17:58:35 UTC
Ankur - would you mind looking into this?  I wouldnt have time for a week or so

Comment 4 Ankur Sinha (FranciscoD) 2010-02-02 06:37:01 UTC
(In reply to comment #1)
> This is happening because the su command to start transmission-daemon as the
> 'transmission' user tries to launch a subshell to execute the command in. There
> are two ways to fix this:
> 
> 1) Use sudo instead of su: Attaching a patch for this. But it gives a password
> prompt for the transmission user if you accidentally start it as a normal user.
> Also, you might need to put a dependency on sudo
> 
> 2) Install the transmission-daemon binary as setuid transmission. This seems
> like the 'right' way IMO    


hi,

Please try the attached init script patch. I'm not pushing it since I need to discuss the script a little more before I can be sure.

regards,
Ankur

Comment 5 Ankur Sinha (FranciscoD) 2010-02-02 06:38:15 UTC
Created attachment 388207 [details]
init script patch

patch to correct transmission service failure

Comment 6 Siddhesh Poyarekar 2010-02-02 07:36:03 UTC
Thanks, the patch works.

-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 7 Siddhesh Poyarekar 2010-02-02 08:13:11 UTC
Removed the needinfo flag that I accidentally introduced in my last update.

-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 8 Fedora Update System 2010-02-05 11:25:01 UTC
transmission-1.83-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/transmission-1.83-1.fc11

Comment 9 Fedora Update System 2010-02-05 12:24:17 UTC
transmission-1.83-2.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/transmission-1.83-2.fc12

Comment 10 Fedora Update System 2010-02-05 23:52:31 UTC
transmission-1.83-1.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update transmission'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2010-1520

Comment 11 Fedora Update System 2010-02-05 23:53:10 UTC
transmission-1.83-2.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update transmission'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1521

Comment 12 Fedora Update System 2010-02-09 05:10:22 UTC
transmission-1.83-1.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2010-02-09 05:11:00 UTC
transmission-1.83-2.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.