LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 05-11-2003, 12:31 PM   #1
Ekim Gram
Member
 
Registered: Apr 2003
Location: West Islip, New York
Distribution: Slackware 10.0, Windows XP Pro
Posts: 128

Rep: Reputation: 15
Permission Problems


How can I get Linux to set my user to be the owner?
 
Old 05-11-2003, 12:32 PM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
chown markus:users file

man chown for more information
 
Old 05-11-2003, 12:33 PM   #3
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
chown is the command you need, for usage and options see
man chown
 
Old 05-11-2003, 01:19 PM   #4
Ekim Gram
Member
 
Registered: Apr 2003
Location: West Islip, New York
Distribution: Slackware 10.0, Windows XP Pro
Posts: 128

Original Poster
Rep: Reputation: 15
Gahh, this is confusing. I type man chown and all this stuff comes up. I just want my user to be the owner of everything in / or in other words, everything on this partition since I'm the only one using it.
 
Old 05-11-2003, 01:22 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
everything? no that's wrong, very very wrong. root is there for an extremely good reason, and you'd do very well is accept him, and appreciate him when you aren't allowed to do something really dumb and break your entire system. changing ALL file ownerships on your system is a superb step to completely trashing your system though if you really do want to. i promise it will never ever boot correctly again...
 
Old 05-11-2003, 01:25 PM   #6
Ekim Gram
Member
 
Registered: Apr 2003
Location: West Islip, New York
Distribution: Slackware 10.0, Windows XP Pro
Posts: 128

Original Poster
Rep: Reputation: 15
Well, how bout this. I want to be owner of the usr and lib folders in / Would that be better?
 
Old 05-11-2003, 01:26 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
nope. you NEED root.
 
Old 05-11-2003, 01:29 PM   #8
Ekim Gram
Member
 
Registered: Apr 2003
Location: West Islip, New York
Distribution: Slackware 10.0, Windows XP Pro
Posts: 128

Original Poster
Rep: Reputation: 15
what do you mean I need root? I don't understand.
 
Old 05-11-2003, 01:42 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
it's the way unix works... you shouldn't mess with it, only be root when you need to and leave root in charge of everything where possible
 
Old 05-11-2003, 01:48 PM   #10
Ekim Gram
Member
 
Registered: Apr 2003
Location: West Islip, New York
Distribution: Slackware 10.0, Windows XP Pro
Posts: 128

Original Poster
Rep: Reputation: 15
I just want to be able to delete some folders I made but now it won't let me cause I'm not owner of it's parent folder which is /home and I would like to be able to put files in /usr/local

Last edited by Ekim Gram; 05-11-2003 at 01:51 PM.
 
Old 05-11-2003, 01:54 PM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
su to root then.

you shouldn't really ever need to put any files in /usr/local other than system programs and libraries which should be installed via rpm, makefiles or such like, you shouldn't ever need to manually coy thigns to there.
 
Old 05-11-2003, 01:56 PM   #12
Ekim Gram
Member
 
Registered: Apr 2003
Location: West Islip, New York
Distribution: Slackware 10.0, Windows XP Pro
Posts: 128

Original Poster
Rep: Reputation: 15
Well, I've been going through the Apache HowTo guide and it's telling me to put all the files in /usr/local when I download them but they never show up when they do so I'm guessing it's because of the permissions.
 
Old 05-11-2003, 01:59 PM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
well that presuamably means "put" as is set PREFIX=/usr/local when you compile it...
 
Old 05-11-2003, 02:45 PM   #14
Ekim Gram
Member
 
Registered: Apr 2003
Location: West Islip, New York
Distribution: Slackware 10.0, Windows XP Pro
Posts: 128

Original Poster
Rep: Reputation: 15
Ok, that may solve that problem but how can I get ownership of /home so I can delete the folders I made and now no longer need?
 
Old 05-11-2003, 02:47 PM   #15
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
really don't seem to be getting very far... root owns it, root should always on it. if you need to delete somethign in there, become root.
 
  


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
Permission problems britishnemesis Linux - Software 4 02-19-2005 02:45 PM
Permission Problems Wynand1 Linux - Security 1 01-28-2005 06:33 AM
HD permission problems Sarrin Linux - Software 1 05-13-2004 10:16 PM
sm permission problems Jestrik Linux - Networking 0 03-27-2004 08:00 AM
Problems with Permission mordin Linux - Newbie 4 10-23-2003 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration