LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-03-2013, 09:30 AM   #1
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 348

Rep: Reputation: 13
deluged to run as a different user


I'm trying to get deluged to start on boot using /etc/init.d/deluge-daemon. Currently, this works with my user. I've followed this guide

I think I've created a user called 'deluge'. I think I have created a group called deluge and deluge and I are a member of the group.

The config files are in /home/pi/.config/deluge which has the permission of
Code:
-rwxrwxr-- 1 pi deluge  2527 Aug  3 07:34 file
If I change the user in /etc/default/deluge-daemon to 'deluge' then it doesn't run.

I'm a complete computer newbie, I really have no idea what I'm doing wrong.

Any advise or guidance will be gratefully received.
 
Old 08-03-2013, 10:25 AM   #2
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 348

Original Poster
Rep: Reputation: 13
I think I've solved this. It looks like deluge needs it's own home directory, so copying /home/pi/.config/deluge to /home/deluge/.config/deluge works!

I'll see how it is long term and I'd appreciate any advice people can offer.
 
Old 08-05-2013, 11:36 PM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
For shared files it is usually easiest to put them in a "shared" directory. I think I use an unorthodox technique but I put files in a group folder in /shared/groupName where groupName is the name of the group I want to share the file(s) with. I set a sticky bit on the group folder: chmod g+s groupName so that files created under that directory will be created with the same group permissions.

One other trick to making sharing easy is to make sure you don't overshare a directory. Keeping permissions under control will help you down the road so you don't have a ton of housekeeping to do as things start to become more clear.

Good luck!
-Chad
 
1 members found this post helpful.
Old 08-06-2013, 03:00 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,830

Rep: Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409
if you want to run deluge as a different user than is currently loged in .That is easy
for example if you have the users
Bob,Ted,and Alice
and Bob is logged in and Ted needs to run it then this will do it
Code:
su -l ted 
--- ted's password ----
deluge
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to run linux command from a different user from a jsp page which is run by tomcat etika Linux - Newbie 2 04-27-2011 12:53 PM
How to run daemon process being a normal user [not root user]. narendra1310 Linux - Software 1 10-26-2009 10:48 AM
To run user designed scripts when user logs in pradeepgokulr007 Linux - Newbie 4 08-19-2009 03:12 AM
Gconf-editor settings not sticking for root, sudo user, or user when run sandaili Fedora 1 07-19-2008 09:31 AM
I can't run Firefox from my single user(only from a super user) nightrider Linux - Newbie 14 10-24-2006 09:35 PM


All times are GMT -5. The time now is 06:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration