LinuxQuestions.org
Help answer threads with 0 replies.
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 06-02-2007, 12:18 PM   #1
kshane
LQ Newbie
 
Registered: Jun 2007
Posts: 1

Rep: Reputation: 0
Permission for Everything


How do I give myself permission for everything? I'm the sole user...

Thanks...
Kevin
 
Old 06-02-2007, 01:07 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
If you want permission to everything then you should log in as root. I assuming you want to be able to use any command to do any job?

If you what to be able to run some commands as root when needed then you can do it several ways. edit /etc/sudoers file with the visudo command and looking at the examples give yourself the ability to do everything. For that to work place the command sudo before the command you wish to run and then it is run as root. You can set it up to use your password or just run the command without. I would at least add the support to enter your user password just to run the command.

This is not the best way to run a system. One miss type letter or command option can wipe a system faster than you can press the return key. Granted this is not an issue since there are few linux variant virus in the wild but if you were to be browsing the web with java scripting and get hit by something then it has root priviledges to do as it like. Just my thoughts.

Brian
 
Old 06-02-2007, 01:13 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Ditto the "you don't wan't to do that" sentiment. When you need to do something, typing "su" seems like a small price to pay for some protection against careless mistakes.

If you really really want to do what you say, then do "man chmod" to see how.
 
Old 06-05-2007, 11:04 PM   #4
linuxguru2
LQ Newbie
 
Registered: Jun 2007
Location: North Carolina
Distribution: Ubuntu 7.04 Feisty Fawn
Posts: 11

Rep: Reputation: 0
I have to agree with everyone else here...you should only give your self root privelages when you absolutley need to. As Brian said, there are many ways you can run as root, depending on your Linux distro. In my case, I use Ubuntu 7.04 (Feisty Fawn), and i use sudo to run commands as root, but in some other systems, you may use su to gain root privelages. You'd have to try both to see. Brian's also right about mistyping commands or letters. A couple of my friends made that same mistake, and flushed about 3-5 years worth of work on a system down the toilet. Also, as Brian said, if you are unfortunate enough to get one of the FEW linux viruses out there, you could be looking at some serious trouble if you make everything root access. I also totally agree with what pixel said. I wouldn't recommend it, but hey it's your system. You have to make the call. We're just giving you some things to think about before you do it. All the best.

Linuxguru2.
 
Old 06-06-2007, 12:39 AM   #5
fotoITguy
LQ Newbie
 
Registered: Jun 2007
Posts: 7

Rep: Reputation: 0
If you want to give yourself permissions on a set of files or a set of folders in files you would either change the permissions or ownership or both accordingly.

# man chmod
# man chown

example # chmod 540 /home/someuser/somefile.txt

or for a directory and the files therein:

chmod -R 540 /home/someuser/somedirectory

Also, chown will change ownership as such:

# chown someuser.somegroup /home/someuser/somefile.txt

to do this for everything is inappropriate as explained by the other posts.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 05:57 AM
How to get the permission? lugia Ubuntu 23 07-25-2006 06:39 PM
permission problem - "You don't have permission to access" radone Linux - General 3 07-24-2006 10:23 AM
permission not given ekips_zbuhc Linux - Newbie 1 01-28-2006 08:18 PM

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

All times are GMT -5. The time now is 05: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
Open Source Consulting | Domain Registration