LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 01-31-2007, 03:53 PM   #1
ronbrooks
LQ Newbie
 
Registered: Nov 2006
Location: McKenney, VA
Distribution: ubuntu
Posts: 10

Rep: Reputation: 0
gksudo nautilus


when I get to my file and want to change the group or owner. I get the drop down menu and make my selection and click on it but I keep getting a error message that states I don't have permission to change this file.

All I want to do is change the group on one of my files but it will not let me do it.

If you have any help I could use it.
 
Old 01-31-2007, 04:24 PM   #2
ronbrooks
LQ Newbie
 
Registered: Nov 2006
Location: McKenney, VA
Distribution: ubuntu
Posts: 10

Original Poster
Rep: Reputation: 0
nautilus

I forgot to tell you I am using Ubuntu 6.10
 
Old 02-01-2007, 04:53 AM   #3
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Terminal / Console is the way to go:
sudo chown user:group /path/to/the/file
 
Old 02-01-2007, 08:18 AM   #4
ronbrooks
LQ Newbie
 
Registered: Nov 2006
Location: McKenney, VA
Distribution: ubuntu
Posts: 10

Original Poster
Rep: Reputation: 0
tedegar when I use that command I keep getting a invalid user messages. I must be doing something wrong. Could you help me on this.
 
Old 02-01-2007, 09:07 AM   #5
ronbrooks
LQ Newbie
 
Registered: Nov 2006
Location: McKenney, VA
Distribution: ubuntu
Posts: 10

Original Poster
Rep: Reputation: 0
Also when I use this command sudo chgrp (user name) (file name) I get a operation not permitted. I don't know why it will not let me change the group name. The owner of the filer is root. The file I want to change is a open office file My_Story.odt. It has an group name of plugdev as dose all the other files in that drive.
 
Old 02-01-2007, 09:36 AM   #6
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
You should be running as the user who installed ubuntu, if not, you may not have permissions to sudo.
Try the following in a terminal window:
groups
This should list the groups your username is in.
For me, it looks like this:
tredegar adm dialout cdrom floppy audio dip video plugdev lpadmin scanner admin
Then try
sudo -i
It should ask for your password and then let you become root.
Then you can (now you are root) try the command chgrp groupname /path/to/the/file

You'll have to change "groupname" to the name of a group that already exists.
Type exit at the terminal to cease being root, before you do something by mistake.

Quote:
tedegar when I use that command I keep getting a invalid user messages
This really doesn't help me understand what is happening at all.
In future, please copy & paste the commands you gave, and the exact error message(s).
 
Old 02-02-2007, 09:02 AM   #7
ronbrooks
LQ Newbie
 
Registered: Nov 2006
Location: McKenney, VA
Distribution: ubuntu
Posts: 10

Original Poster
Rep: Reputation: 0
change group user

OK I used the commands that you suggested and this is what I got.

ronbrooks@prodigy:~$ sudo -i
root@prodigy:~# chgrp ronbrooks /media/hdb6/My_Story.odt
chgrp: changing group of `/media/hdb6/My_Story.odt': Operation not permitted

If you have any other suggestion please let me know.

I can still use the drive because I am a member of the group plugdev but I would like to change it to my own group. The drive is owned by root and all groups on that drive are plugdev but it will not let me change. I don't know but do I need to unmount the drive before the change are made.
 
Old 02-02-2007, 11:03 AM   #8
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Thank you: You can become root, but the chgrp is not permitted.
This is strange.
I'd like to see the output of ls -al /media and cat /etc/fstab | grep hdb6 please.
Do you have write privileges for /dev/hdb6 ? It's not an NTFS partition by any chance is it?

I expect udev rules has assigned your drive to be a member of the group plugdev, and set its permissions. Maybe, if you want this to be different, you should be looking at your /etc/udev/rules.d/ rules files, and making the changes there.
I'm at work now, on MS, so dont have the link I want, but you can google for "Writing udev rules".

Unmounting the drive will not help.
 
Old 02-02-2007, 02:00 PM   #9
ronbrooks
LQ Newbie
 
Registered: Nov 2006
Location: McKenney, VA
Distribution: ubuntu
Posts: 10

Original Poster
Rep: Reputation: 0
I was able to do it by changing my fstab file so now I am the owner and user is the group. I am able now to make any changes I need to because I am the owner.

Thanks for your help.
 
  


Reply

Tags
gksudo, nautilus


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nautilus Help carlosinfl Linux - Software 1 04-25-2006 09:48 AM
Gnome Nautilus compile failed in [nautilus-printer.lo] chunlee Linux - Software 5 01-24-2005 04:57 PM
Nautilus 2.6.x BruceC Linux - Newbie 2 11-02-2004 06:58 PM
Nautilus shariqali Linux - General 1 09-24-2003 11:55 AM
Nautilus Comatose51 Linux - General 1 02-16-2003 02:29 PM


All times are GMT -5. The time now is 04:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration