LinuxQuestions.org
Help answer threads with 0 replies.
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 04-02-2017, 04:21 PM   #1
Bassit
LQ Newbie
 
Registered: Mar 2017
Posts: 16

Rep: Reputation: Disabled
Taking ownership of a folder.


Hi, Confused newbie here.

I'm using Ubuntu 14lts with XFCE installed.

I installed a program that works in conjunction with another program.

To cut a long story short i installed one program with one account and the other on a different account, both programs work but i am having permission issues when trying to use an app within one of the programs.

What do i need to do to take full control of both programs? I have managed to gain access(permission) to both install folders but i assume they are still in different groups? so i still don't have full control of both programs?

I have tried following what i found on google but one of the programs would stop working every time i tried to change the group settings, so i must be missing something.

Cheers
Bassit.
 
Old 04-02-2017, 04:23 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,204

Rep: Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190
what where they and how did you install them? I do find it hard to think it was done by anything other then Root User rights. but nonetheless details are needed.
 
Old 04-02-2017, 04:34 PM   #3
Bassit
LQ Newbie
 
Registered: Mar 2017
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
what where they and how did you install them? I do find it hard to think it was done by anything other then Root User rights. but nonetheless details are needed.
Hi, that was fast!!

I did say i was confused!!

There is only one program i need to take full control of, the program is plex and i stupidly set up a new account (with sudo su) called plex and installed it under that account, now i want to have full access on my most used user account.

Last edited by Bassit; 04-02-2017 at 05:02 PM.
 
Old 04-02-2017, 05:03 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,204

Rep: Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190
Quote:
Originally Posted by Bassit View Post
Hi, that was fast!!

I did say i was confused!!

There is only one program i need to take full control of, the program is plex and i stupidly set up a new account (with sudo su) called plex and installed it under that account, now i want to have full access on my most used user account.
uninstall it then don't do that again. install it by the proper means. simple fix.. have a nice day.

then again well su to root then install a pkg reguardless of what user name is should not lock down the app to only that user account you were in when you installed it.

soooo. is this it ? https://www.plex.tv/


Installation
Preparation
Before You Begin

https://support.plex.tv/hc/en-us/art...6-Installation

Last edited by BW-userx; 04-02-2017 at 05:12 PM.
 
1 members found this post helpful.
Old 04-02-2017, 05:10 PM   #5
Bassit
LQ Newbie
 
Registered: Mar 2017
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
uninstall it then don't do that again. install it by the proper means. simple fix.. have a nice day.
Thank you for the suggestion but whilst it is a simple fix it isn't what i asked for..
 
Old 04-02-2017, 05:19 PM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,204

Rep: Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190
Quote:
Originally Posted by Bassit View Post
Thank you for the suggestion but whilst it is a simple fix it isn't what i asked for..
well sometimes simple fixes is what people get. I am sorry that you cannot deal with a simple fix therefore it seems that you want to be challenged so please go back and read my post again I modded it while you where posting yours.

Last edited by BW-userx; 04-02-2017 at 05:23 PM.
 
Old 04-02-2017, 05:31 PM   #7
Bassit
LQ Newbie
 
Registered: Mar 2017
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
well sometimes simple fixes is what people get. I am sorry that you cannot deal with a simple fix therefore it seems that you want to be challenged so please go back and read my post again I modded it while you where posting yours.
I'm slightly confused as well as bemused by your replies but ill thank you all the same..

I have no wish to get into whatever this is, so i will ask once then I'm out..

Is this secret knowledge that shouldn't be passed on? please explain your reply..

Last edited by Bassit; 04-02-2017 at 05:40 PM.
 
Old 04-02-2017, 05:43 PM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,204

Rep: Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190
Quote:
Originally Posted by Bassit View Post
I'm slightly confused as well as bemused by your replies but ill thank you all the same..

I have no wish to get into whatever this is, so i will ask once then I'm out..

Is this secret knowledge that shouldn't be passed on? please explain your reply..
I am not going to get off topic on your ability to get confused by a simple converstion.

if that is what you installed and it only works with the account you were in when you installed it. then as the saying goes,

if all else fails read the instructions.

Installation
Preparation
Before You Begin

https://support.plex.tv/hc/en-us/art...6-Installation

Code:
To open Plex Web App from a different device than the server computer while
 still on the same network: Open a browser window. Type http://server.local.ip.address:32400/web 
into the address bar (e.g "http://192.168.1.5:32400/web") The browser will connect to the server and
 load Plex Web App.

Last edited by BW-userx; 04-02-2017 at 05:58 PM.
 
1 members found this post helpful.
Old 04-02-2017, 06:07 PM   #9
Bassit
LQ Newbie
 
Registered: Mar 2017
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
I am not going to get off topic on your ability to get confused by a simple converstion.

if that is what you installed and it only works with the account you were in when you installed it. then as the saying goes,

if all else fails read the instructions.

Installation
Preparation
Before You Begin

https://support.plex.tv/hc/en-us/art...6-Installation

Code:
To open Plex Web App from a different device than the server computer while
 still on the same network: Open a browser window. Type http://server.local.ip.address:32400/web 
into the address bar (e.g "http://192.168.1.5:32400/web") The browser will connect to the server and
 load Plex Web App.
Thank you for your reply..
 
Old 04-03-2017, 12:51 PM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051
Quote:
Originally Posted by Bassit View Post
I have tried following what i found on google but one of the programs would stop working every time i tried to change the group settings, so i must be missing something.
it would be really nice yo know WHAT didn't work (what you did exactly).

or maybe not; you most probably need to adjust group permissions.
so for a directory tree that you want to have group permissions identical to user permissions, something like
Code:
chmod -R g=u .
(notice the dot at the end. execute this from the directory tree's root)

then you have to make sure that both users are in the same group.
 
1 members found this post helpful.
Old 04-03-2017, 03:35 PM   #11
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,363

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hi Bassit,

I hope I'm not muddying the waters here any more than they already may seem to you, but, notwithstanding the assistance already offered by other members here, my comments and questions are:

- It is unusual in linux to install a program/application other than with the root account, either directly while logged in as root or through the su (for temporarily becoming root, not some other account) or sudo (execute a specific command as root) commands.

- One of the reasons for this is that most packages expect that the user account being used to install has all of the appropriate permissions for the file systems required. This invariably boils down to using root.

- The fact that you installed something using an account other than root might be part of the problem for the reasons mentioned above (ex. missing parts of the application not installed due to insufficient premissions ...).

- Also, more details would be useful. How exactly did you install the applications ? Using your distro's package management system ? Manually ? What are (besides plex) the applications and how do they depend on each other ?

Cheers :-)
 
1 members found this post helpful.
Old 04-04-2017, 01:57 AM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051
Quote:
Originally Posted by Rickkkk View Post
- It is unusual in linux to install a program/application other than with the root account, either directly while logged in as root or through the su (for temporarily becoming root, not some other account) or sudo (execute a specific command as root) commands.
it is not unusual for server-based applications.
plex is a media server and falls into that category. haven't checked but i'm pretty sure they have instructions on how to set it up that involves extracting an archive in your $HOME somewhere, and no root privileges.

but i agree on all other points; esp. that ominous other application...
 
1 members found this post helpful.
Old 04-04-2017, 07:32 AM   #13
Bassit
LQ Newbie
 
Registered: Mar 2017
Posts: 16

Original Poster
Rep: Reputation: Disabled
Hi everyone, thank you for the replies.

Where to start?

I think ill start with an apology for my confusing post and complete lack of information.
I did say i was confused and i got it completely wrong, there is no other program working alongside plex, it runs alongside a totally different program, again my apologies...

I should also mention my terrible memory and the install was about 1 month ago.

Ill try to go back and give an idea of how plex was installed originally - my aim is to either get plex back to its original permissions or to hand all permissions to my main user account (in a usable way), but i don't think that works too well tbh.

The instructions i followed:

Plex install...

cd ~
wget https://downloads.plex.tv/plex-media...4a8d_amd64.deb
sudo dpkg -i plexmediaserver_1.1.3.2700-6f64a8d_amd64.deb

Then set Plex up with a user

sudo su
passwd plex (i used a different password)
adduser plex sudo

give it a home directory

sudo mkdir /home/plex/
sudo chown plex /home/plex/

Although i don't think i followed the last command as i cant find the dir home/plex, i haven't logged on as plex and i'm not sure if i would need to to see this dir??

I have tried/succeeded to take/gain permission to my main user account, i wanted access to a folder within plex to place a folder to use a feature of plex, i can do without this if need be.

At the moment plex is owned by my main user account (which i have added to the plex group) and not all features are working correctly.

I should of checked the permissions of plex before changing owners because now i am not too sure what permissions i need to give back to plex.

I do have full access to linux and was given a root logon although it has never worked and the only thing i have ever known about linux is to be very careful using root as login so i wasn't too bothered as it would only get me into trouble.


Thanks
Bassit.

Last edited by Bassit; 04-04-2017 at 07:37 AM.
 
Old 04-04-2017, 09:06 AM   #14
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,204

Rep: Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190
Quote:
Originally Posted by Bassit View Post
Hi everyone, thank you for the replies.

Where to start?

I think ill start with an apology for my confusing post and complete lack of information.
I did say i was confused and i got it completely wrong, there is no other program working alongside plex, it runs alongside a totally different program, again my apologies...
Don't sweat it on my account, I've still had them moments of, how do I form this question so others will understand what I am trying to say? then work out the question as I type. even at times I look at it after I've posted it and even I get confused by it. so I got a edit it, again and again. read it looks ok post it read it again then find mistakes in it then have to edit it again. mean while someone is reading it. too late that extra information I just added or typo or badly formed sentence I just tried to fix got missed.

not knowing all of the jargon for everything doesn't help either.



a little hint to save your fingers.

change this
Code:
cd ~
to this
cd
Just using cd enter takes you back to the logged in users home directory automatically. exception, Logged in as
Code:
su - 
password

pwd

/root

exit

pwd

/home/user
gets automatically sent back to user account
Code:
su
password
pwd 
/home/user
cd
pwd
/root
exit
pwd
/home/user

Last edited by BW-userx; 04-04-2017 at 09:15 AM.
 
1 members found this post helpful.
Old 04-04-2017, 09:24 AM   #15
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,204

Rep: Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190
Code:
sudo su
passwd plex (i used a different password)
adduser plex sudo

give it a home directory

sudo mkdir /home/plex/
sudo chown plex /home/plex/
adduser
https://linux.die.net/man/8/adduser

useradd
https://linux.die.net/man/8/useradd

Code:
$sudo adduser [enter]
follow prompts
finished
or
Code:
su
password
adduser userName
passwd userName
enter password twice

moduser -aG group,group,group...

mkdir /home/userName

chown userName:group /home/user -R
or
Code:
 useradd -m -g users -G wheel,floppy,audio,video,cdrom,plugdev,power,netdev,lp,scanner -s /bin/bash usrName

Last edited by BW-userx; 04-04-2017 at 09:30 AM.
 
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
taking ownership of a tty/process Frustin Linux - General 1 04-11-2012 10:48 AM
[SOLVED] Change folder ownership in Fedora 12 nortonz Linux - Server 4 07-04-2010 11:33 AM
Users saving but not taking ownership deadtech Other *NIX 4 12-06-2005 10:49 AM
root keeps taking ownership of ~/.Xauthority devfreak Fedora 3 04-07-2005 10:24 AM

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

All times are GMT -5. The time now is 09:53 AM.

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