LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-30-2004, 01:18 PM   #1
iotc247
Member
 
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248

Rep: Reputation: 30
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..
 
Old 05-30-2004, 01:32 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
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...)

Last edited by keefaz; 05-30-2004 at 01:36 PM.
 
Old 05-30-2004, 01:37 PM   #3
iotc247
Member
 
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248

Original Poster
Rep: Reputation: 30
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..
 
Old 05-30-2004, 02:18 PM   #4
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
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.
 
Old 05-30-2004, 02:22 PM   #5
iotc247
Member
 
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248

Original Poster
Rep: Reputation: 30
Hey look i just dont like typing su to do anything..
 
Old 05-30-2004, 02:24 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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.
 
Old 05-30-2004, 02:25 PM   #7
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
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 ?
 
Old 05-30-2004, 02:28 PM   #8
iotc247
Member
 
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248

Original Poster
Rep: Reputation: 30
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)



Last edited by Aussie; 05-30-2004 at 05:22 PM.
 
Old 05-30-2004, 02:33 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 05-30-2004, 02:35 PM   #10
iotc247
Member
 
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248

Original Poster
Rep: Reputation: 30
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?
 
Old 05-30-2004, 02:37 PM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 05-30-2004, 02:38 PM   #12
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
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.
 
Old 05-30-2004, 02:38 PM   #13
iotc247
Member
 
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248

Original Poster
Rep: Reputation: 30
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.
 
Old 05-30-2004, 02:40 PM   #14
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
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?
 
Old 05-30-2004, 02:41 PM   #15
iotc247
Member
 
Registered: Mar 2004
Location: Florida
Distribution: Gentoo
Posts: 248

Original Poster
Rep: Reputation: 30
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..
 
  


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
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
permission ... permissions .... permissions alaios Linux - General 1 05-31-2005 04:16 AM
Permissions jymmi Linux - Newbie 3 04-14-2005 11:43 PM
Permissions help reddog64 Linux - Newbie 1 04-22-2004 05:23 PM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:40 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