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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
04-02-2017, 04:21 PM
|
#1
|
LQ Newbie
Registered: Mar 2017
Posts: 16
Rep: 
|
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.
|
|
|
04-02-2017, 04:23 PM
|
#2
|
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,342
|
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.
|
|
|
04-02-2017, 04:34 PM
|
#3
|
LQ Newbie
Registered: Mar 2017
Posts: 16
Original Poster
Rep: 
|
Quote:
Originally Posted by BW-userx
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.
|
|
|
04-02-2017, 05:03 PM
|
#4
|
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,342
|
Quote:
Originally Posted by Bassit
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.
|
04-02-2017, 05:10 PM
|
#5
|
LQ Newbie
Registered: Mar 2017
Posts: 16
Original Poster
Rep: 
|
Quote:
Originally Posted by BW-userx
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.. 
|
|
|
04-02-2017, 05:19 PM
|
#6
|
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,342
|
Quote:
Originally Posted by Bassit
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.
|
|
|
04-02-2017, 05:31 PM
|
#7
|
LQ Newbie
Registered: Mar 2017
Posts: 16
Original Poster
Rep: 
|
Quote:
Originally Posted by BW-userx
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.
|
|
|
04-02-2017, 05:43 PM
|
#8
|
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,342
|
Quote:
Originally Posted by Bassit
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.
|
04-02-2017, 06:07 PM
|
#9
|
LQ Newbie
Registered: Mar 2017
Posts: 16
Original Poster
Rep: 
|
Quote:
Originally Posted by BW-userx
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.. 
|
|
|
04-03-2017, 12:51 PM
|
#10
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by Bassit
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 (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.
|
04-03-2017, 03:35 PM
|
#11
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
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.
|
04-04-2017, 01:57 AM
|
#12
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by Rickkkk
- 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.
|
04-04-2017, 07:32 AM
|
#13
|
LQ Newbie
Registered: Mar 2017
Posts: 16
Original Poster
Rep: 
|
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.
|
|
|
04-04-2017, 09:06 AM
|
#14
|
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,342
|
Quote:
Originally Posted by Bassit
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
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.
|
04-04-2017, 09:24 AM
|
#15
|
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,342
|
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.
|
All times are GMT -5. The time now is 07:58 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|