LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-12-2002, 11:12 PM   #1
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Rep: Reputation: 30
Weird Stuff


Here lately, under my account, I haven't been able to do squat!! Browse the web, use gaim, or even write stuff to my mounted WIN98 partition! I went into my root account and gave myself root privelidges. That didn't work. So I removed myself from ALL groups except root. Still nothing, so I made myself part of every group but made root primary. Still nothing. Ideas?

Also, I'm having trouble uderstanding the levels of security in this OS and exactly what "groups" mean what. Help anyone?
 
Old 09-13-2002, 02:19 AM   #2
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
Re: Weird Stuff

Quote:
Originally posted by Bigun
Here lately, under my account, I haven't been able to do squat!! Browse the web, use gaim, or even write stuff to my mounted WIN98 partition! I went into my root account and gave myself root privelidges. That didn't work. So I removed myself from ALL groups except root. Still nothing, so I made myself part of every group but made root primary. Still nothing. Ideas?

Also, I'm having trouble uderstanding the levels of security in this OS and exactly what "groups" mean what. Help anyone?
how did u give yourself root priviledges?
(i want to know how)..
in my knowledge, it's not possible


on linux.. everything is file..
even devices..

and all files have permissions
owner permission
group permission
world permission

if u do 'ls -l filename'
output format will be like this
[root@beautifulmind apache]# ls -l /home/eugene/ttttt
-rw-r--r-- 1 eugene eugene 1 Jun 23 21:34 ttttt
which means
the file's owner is eugene, owner group is eugene
and the permission for owner/group/world is rw/r/r (read,write/read/read)

you can change owner and group owner like this
[root@beautifulmind apache]# chown eugene.apache /home/eugene/ttttt
[root@beautifulmind apache]# ls -l /home/eugene/ttttt
-rw-r--r-- 1 eugene apache 1 Jun 23 21:34 /home/eugene/ttttt

you can change permission like this
[root@beautifulmind apache]# chmod 761 /home/eugene/ttttt
[root@beautifulmind apache]# ls -l /home/eugene/ttttt
-rwxrw---x 1 eugene apache 1 Jun 23 21:34 /home/eugene/ttttt*
[root@beautifulmind apache]#


7(which is 4(r) + 2(w) + 1(x) ) = read/write/execute
6( 4(r) + 2(w) ) = read/write
1 ( 1(x) ) = excecute

which means
owner can do read/write/excecute
group can do read/write
anyone can do execute

'groups' shows you what group you are in..
[root@beautifulmind apache]# groups
root wheel disk adm sys daemon bin
[root@beautifulmind apache]#

so ..
group concept is for ?
control permissions on files
if you have 5 close friends account 3 not that close friends accounts
you can add the 5 friends in one group A, 3 friends in another group B

for your diary file
set permission 640 on the diary file
and set owner/group as you/group A

read other docs for further info
 
Old 09-13-2002, 02:23 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Re: Re: Weird Stuff

Quote:
Originally posted by doublefailure
how did u give yourself root priviledges?
(i want to know how)..
in my knowledge, it's not possible
You can edit the /etc/passwd file and basically make your user root by changing the UID to root's.

Cool
 
Old 09-13-2002, 02:39 AM   #4
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
thx MasterC
 
Old 09-13-2002, 02:49 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
No problem
 
Old 09-13-2002, 02:11 PM   #6
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
it actually depends on your distro as to whether you can give a regular user full root access. slackware doesn't seem to have a problem with it at all, but on a redhat system if you add a user to the root group it will only give them permission to do certain things that root can (can't remember what, exactly). but i couldn't even startup nfs services as my super root user on my redhat box.

anyone else having these problems?
 
Old 09-14-2002, 01:18 AM   #7
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
Yeah, actually that's what I ran into, but the eye-candy and user friendliness of RH runs over Slackware...so I'll deal wih it..
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird Stuff on my Website k1ll3r_x Linux - Networking 10 07-28-2006 11:14 AM
mailq on exim - weird stuff tensigh Debian 2 04-10-2004 09:01 PM
Suse 9.0 + Kernel 2.6.1 = weird stuff king30 Linux - Software 18 02-21-2004 07:49 PM
more weird X stuff sockknitter Debian 1 12-20-2003 10:15 AM
f-prot anti-virus "Segmentation fault" error and other weird stuff dalek Linux - Software 9 10-22-2003 07:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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