LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Permissions (https://www.linuxquestions.org/questions/slackware-14/permissions-187697/)

iotc247 05-30-2004 01:18 PM

Permissions
 
How can i have it so that regular users can do swaret and can install packages and copy and move files where only root can? like where i can modify xorg.conf as a regular user..

keefaz 05-30-2004 01:32 PM

If you succeed at this your system will become very insecure and full of tweaky permissions. The packages are most of the time installed in directories owned by root. Thes directory have these permission to not enable end user to do bad thing (like rm /bin/bash or something similar)

[edit]
You can always make "sub system trees" in user's directories like ~/etc ~/bin ~/usr and play with installpkg -root ~/ but programms / librairies installed here will be accessible only for the user in question (you can always play with PATH environment variable and /etc/ld.so.conf but...)

iotc247 05-30-2004 01:37 PM

Well look.. I just want to be able to do things like installpkg removepkg pkgtool and modify files and stuff without suing... Its my dam system.... That is the only downside to linux.. If its my dam system i should have control over my dam system... I mean thats what linux is for CONTROL... right? None of this is pointed toward you..

darthtux 05-30-2004 02:18 PM

Only the root user has control over the entire system. One thing an operating system needs is security. And there is no security when a user can do whatever they want.

You do have control over your system if your root. Is it hard to su? No.

iotc247 05-30-2004 02:22 PM

Hey look i just dont like typing su to do anything..

david_ross 05-30-2004 02:24 PM

If you really want to make the choice of doing everything with root privilages then just delete your user account and always login as root - I certainly wouldn't reccomend it though.

keefaz 05-30-2004 02:25 PM

Thanks to not pointed toward me ;) but look, if you have a nice car, would you lend it to a 10 year old child ? I mean you (the owner of your system) can do everything because you are root, but let the power to do everything to other user is not good (althought you can do it because all is possible in linux).
For update the system, why not make a cron job which will update your system for you at certain period of time ?
And also what is your main reason to want the other users use installpkg ?

iotc247 05-30-2004 02:28 PM

Cause i don't want to su..I'm the only user on the PC.. If linux gets ****** up ill reinstall it i don't care.. Thats why i just want to be able to do what i want with my own PC.. I just don't wanna log in as root as some progs don't work as root (winesetuptk)



Tinkster 05-30-2004 02:33 PM

Well, if you really want to be lazy and stupid, just
go ahead, edit /etc/passwd and change your users
numerical UID to 0.

It's a pity, though, to waste a sensible system on
someone with a windows-mentality. Really you should
stick with ME or XP.



Cheers,
Tink

iotc247 05-30-2004 02:35 PM

I have tried doing that thing in /etc/passwd before and it screwed my system.. So there isnt a program i can install to allow me to do installpkg and swaret without having to su? Or maybe a command i can put in ~/.bashrc to allow me to do that kinda stuff when i login?

Tinkster 05-30-2004 02:37 PM

Of course there is, it's called sudo, but with your
mindset I figured that you'd find that to be too
much effort to set-up ;)


Cheers,
Tink

keefaz 05-30-2004 02:38 PM

You, the writter of "My Slackware Guide", I can't believe than you are near to think linux is bad because you need to be root to do certain task ;) After that hard work, it is safe to go into another user and let the system well configured, and some functionality locked to avoid human mistakes.

iotc247 05-30-2004 02:38 PM

I dont mind to setup things if its set once and good then i dont ahve a problem.. If someone can help me set that up that would be nice... How would it work would i only have to type sudo once or stick it in ~/.bashrc or what.

darthtux 05-30-2004 02:40 PM

You can set up sudo to allow a user to install packages as root. It can even be set with the NOPASSWORD option. Then you would just
sudo installpkg packagename

Would those extra 5 keystrokes kill you?

iotc247 05-30-2004 02:41 PM

wouldnt it just be easier to just type su and then the command? Im looking for something that i just set once and then any time i ever use the system i never have to type su or sudo again..


All times are GMT -5. The time now is 03:26 PM.