LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Files For Both root and user (https://www.linuxquestions.org/questions/linux-general-1/files-for-both-root-and-user-90102/)

sxa 09-07-2003 04:03 AM

Files For Both root and user
 
Is there a folder, or a way of adding a folder where I can store stuff so it will appear when loggin in as root, or logging in with my username?

Also when I install a program in root, it will work under my user name too right?

MasterC 09-07-2003 04:47 AM

Re: Files For Both root and user
 
Quote:

Originally posted by Freakygeek55
Is there a folder, or a way of adding a folder where I can store stuff so it will appear when loggin in as root, or logging in with my username?
Sure, you can give permissions on a system wide directory for everyone to read and write to, OR you could just use one that already exists such as /tmp

An example:
mkdir /home/shared
chown root.users /home/shared
chmod 770 /home/shared

Quote:

Also when I install a program in root, it will work under my user name too right?
Depends.
If the file is meant to only be accessed by root (a super user tool) then no, it shouldn't be. However, if it's supposed to be used by everyone (for example gkrellm) then yes, it should be able to be accessed and executed by any user on the system.

Cool

sxa 09-07-2003 05:16 AM

Thank you very much for information, I have been going back and forth all night from my user and root, installing this and that and doing this and that.. Mostly just messing around learning linux.. and not its nearing 5:20am here in my part of Texas.. HAHA! I will be on here till nearly Seven in the morning if I don't watch it..


All times are GMT -5. The time now is 08:13 AM.