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-25-2012, 05:04 AM   #1
agarrett5
LQ Newbie
 
Registered: May 2012
Posts: 16

Rep: Reputation: Disabled
chown


Im trying to gain ownership of an sql file. I have administrative privelages in my account. I try to run andy@abapc79:~/Desktop$ chown andy ext.sql but when I try to chaqnge the file permissions it still tells me im no the owner even though the command does not give back any error message
 
Old 05-25-2012, 05:10 AM   #2
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
what does "administrative privelages" mean? Your user won't be able to do squat otuisde of their won files, and never should be able to by design, run it as root, possibly via sudo.
 
Old 05-25-2012, 05:11 AM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,823
Blog Entries: 1

Rep: Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218Reputation: 1218
First of all, post the output of:

Code:
ls -l | grep ext.sql
And make sure it's wrapped in the code tags just like I did above.

Some admin rights might not be enough (are you talking about sudo?). You might have to change the permissions as root.
 
Old 05-25-2012, 05:16 AM   #4
agarrett5
LQ Newbie
 
Registered: May 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
its saying I have ownership but when I go into right click properties permissions it says I dont :-/
-rwxrwxrwx 1 andy andy 134590464 May 25 10:10 ext.sql I have run it as sudo (sorry I should have said that)
 
Old 05-25-2012, 05:25 AM   #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
what is "it"?? Unless you have a problem specifically with GUI tools, try to only refer to standard terminal based operations that are clear, copy/pasteable and standard across most distros

from the ls, you own that file, end of story.
 
Old 05-25-2012, 05:33 AM   #6
agarrett5
LQ Newbie
 
Registered: May 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
According to the attached im not the owner even though in the command line it says I am :-/
Attached Thumbnails
Click image for larger version

Name:	permision.jpg
Views:	13
Size:	27.4 KB
ID:	9736  
 
Old 05-25-2012, 06:05 AM   #7
agarrett5
LQ Newbie
 
Registered: May 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
Ive got it sorted, I changed the ownership to root and then back again and it worked. Not sure what happened the first time :-/
 
  


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
chown ! noony123 Linux - Newbie 2 03-01-2011 08:17 AM
chown rust8y Solaris / OpenSolaris 3 11-02-2007 04:04 PM
chown loopoo Linux - Newbie 5 08-09-2005 09:38 AM
Chown -R Jakeh2k1 Linux - General 3 10-31-2004 04:23 PM
chown Sathe Linux - General 13 10-14-2002 11:25 AM

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

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