LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 08:30 AM   #1
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

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, 09:25 AM   #2
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

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, 10:36 PM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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, 02:00 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:11 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
Open Source Consulting | Domain Registration