LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-01-2009, 01:10 AM   #1
lyoumans
LQ Newbie
 
Registered: Oct 2009
Location: Waycross, GA
Distribution: Ubuntu 9.10 Karmic Koala
Posts: 5

Rep: Reputation: 0
Question Need to change permissions on directories


I trying to install a program that is in a .Jar file. The instructions state to move the file to the /user/local/bin directory. Tried this and got error message that I didn't have permissions to do this. This folder is controlled by ROOT. ROOT and I are to only two users, I am the administrator. How do I change the permissions so I can move or delete files in the different folders? I started to try to delete the user ROOT but being new in Linux, didn't want to take the chance.
 
Old 11-01-2009, 02:27 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by lyoumans View Post
This folder is controlled by ROOT. ROOT and I are to only two users, I am the administrator. How do I change the permissions so I can move or delete files in the different folders?
You don't and you shouldn't. As you run .*buntu.* you should copy files with 'sudo cp /sourcedir/somefile /destinationdir/ && sudo chown 0:0 /destinationdir/somefile && chmod 0644 /destinationdir/somefile'.


Quote:
Originally Posted by lyoumans View Post
I started to try to delete the user ROOT but being new in Linux, didn't want to take the chance.
Indeed. If you don't understand something then you should read the basic GNU/Linux docs your distro provides you with or at least Rute (http://rute.2038bug.com/index.html.gz). And do make backups. Deleting things may seem nice but is a bad, bad reflex, new user or not.
 
Old 11-01-2009, 02:44 AM   #3
Neofish
Member
 
Registered: Dec 2008
Location: Canberra, Australia
Distribution: Fedora
Posts: 35

Rep: Reputation: 18
The administrator account doesn't have total control over the system. The root account, however, is the "god" account. It can do anything. 'sudo su' will log you into this account with your own password. From there you can copy the files.
 
Old 11-01-2009, 03:41 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by Neofish View Post
'sudo su' will log you into this account with your own password. From there you can copy the files.
That is not best practice advice especially not for .*buntu.* users. If one does that then one might as well use a distribution that does not present one with the sudo hurdle in the first place.
 
  


Reply

Tags
ubuntu



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 for different directories keenboy Linux - General 1 07-11-2008 05:17 AM
Permissions and directories arubin Slackware 6 09-21-2007 03:56 AM
home directories permissions black_man Debian 1 11-20-2004 09:48 AM
change file permissions recursivly without changing permission of directories eNTi Linux - Software 8 10-15-2004 03:37 PM
How do I change permissions of files/directories? Okashira Linux - Newbie 5 01-12-2004 05:11 PM

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

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