LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 07-21-2010, 06:24 PM   #1
Colonel-1990
Member
 
Registered: Feb 2005
Posts: 71

Rep: Reputation: 15
Permission Problems Gnome with Arch Linux


Distribution:Arch Linux 2010.05
Kernal:2.6.33.4

System Info:
Intel
Core2Duo 1.8GHz
2GB Crucial DDR2 667MHZ RAM
ASrock 775-DualVSTA Motherboard
NVIDIA
8800GT 512MB PCI-Express Graphics Card
500GB SATA Western Digital Caviar Blue (MAIN SYSTEM DRIVE)
250GB IDE Western Digital Caviar
300GB SATA WEstern Digital Caviar RE16
160GB IDE Maxtor Diamondmax Plus 9
500W Casecom power supply


Hello All,

I've recently switched to linux full time using Arch with a fresh install and im still trying to get everything configured properly.

One of the problems i'm having relates to permissions. I've currently got my main 500GB SATA hard drive (see details in system info) and my 250GB IDE (see system info) drive plugged in, with all the others unplugged. On the 250GB HDD ive got all my backups of music and films that I want to transfer back to my 500Gig hdd. The problem i'm having is 1. I can't create any new partitions on my 500gig hard drive because when I enter the Disk Utility (in gnome) and try and create a new partition, I get the message:

Quote:
Error Creating Partition:

An error occurred while performing an operation on "500GB Hard Disk": Permission Denied.

Details:
Not Authorised.
So it obviously wants me to be root to do this, but why? and how do I become root whilst using a program like that. I've seen it before when it asks you for a password for root in a dialogue box, but Arch doesn't seem to be doing this.

Second problem, still relating to permissions, is when I try and view the 250Gig backup drive through "Places>Computer>Backupdrive", I get the error:

Quote:
Folder Contents Could Not Be Displayed:

You do not have the permissions necessary to view the contents of "backupdrive".
If I mount it using the fstab, I still get the same messages.

Has anyone got any ideas how to solve this.

Thanks,
Scott.
 
Old 07-21-2010, 07:45 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Open a console, su to root and run:

# pacman -S gksu
# pacman -S gparted

Just to be sure you have the necessary packages installed. Then open another console and run as an ordinary user:

$ gksu gparted

A window will come up prompting you for your root password; enter it. A very nice partitioning application, gparted, will come up with root privileges. For editing fstab as root run:

$ gksu gedit /etc/fstab

In general, to run any application with root privileges, run:

$ gksu <application>

To change the permissions on a mounted partition to give the world full read/write permissions, open a console, su to root and run:

# chmod -R 777 <mount point of partition>

Note, the partition must be mounted when the above command is run or it won't work. This method will only work if the partition is formatted with a linux filesystem like ext3, ext4, xfs, etc. It won't work on windows formatted partitions like NTFS or FAT32.

Last edited by kilgoretrout; 07-21-2010 at 07:51 PM.
 
Old 07-21-2010, 10:46 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
hard drive because when I enter the Disk Utility (in gnome) and try and create a new partition, I get the message:
so you are doing this as a normal user ?
that will not work you need to be root

install and setup sudo ( gksu ) as above or do it in the terminal as root

or edit Arch to allow root gui login ( not recommended ) see the Arch wiki- it is there
root GUI login is not normally recommended , except for fixing a fubar'ed OS and for set-up


one reason for the error massage is that Arch starts with the user id of 1000 ( most others start with 500

i have that problem with a shared disk between CentOS 5.5 and Arch

i need to reset the file group from within cent or arch
 
Old 07-22-2010, 07:34 AM   #4
Colonel-1990
Member
 
Registered: Feb 2005
Posts: 71

Original Poster
Rep: Reputation: 15
Thanks for the replies,

I have used Gparted many times in the past, and thats where I mentioned seeing the root login prompt in my post. I've installed it and its all working fine. But I just figured that the Disk Utility that comes with gnome would be sufficient enough and provide you with root privileges automatically, without having to use command line options such as gksu, obviously that must be asking for too much from gnomes disk utility. I didn't mean that i wanted to edit the partitions as a normal non-root user, i just assumed that the Disk Utility would give me root privileges.

I already had sudo installed and set up, from when I did the initial setup of Arch, but i've never heard of gksu, but its needed by gparted and its doing its job.


As for the mounting problem, its an NTFS partition im wanting to mount as its a backup that I made from when Windows was still installed, before I switched completely to open source. I don't necessarily want to give 'full read/write permissions to the world' Kilgoretrout, but I do actually want to be able to access the drive in the first place, so that I can copy the data from it. Once ive got the data from it, it can be wiped and formatted with ext3/4 partition like the rest of my partitions.

<EDIT> I've just created the partitions I need on the 500 gig drive. But I cant mount them from in the browser. Why isn't there a dialogue box popping up and just asking for root password? I don't want to have to do everything from the command line, i've been doing that for years, I just want it to give me some dialogue boxes instead. Is there something that i've not got installed or anything? </EDIT>

Thanks again,
Scott.

Last edited by Colonel-1990; 07-22-2010 at 07:52 AM.
 
Old 07-22-2010, 11:49 AM   #5
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
You need to do a few things. First install ntfs-3g:

# pacman -S ntfs-3g

You also need to have the fuse module loaded:

# modprobe fuse

Make sure hal is running:

# /etc/rc.d/hal restart


Try plugging in your external hard drive and see if you can mount the ntfs and other partitions. If not logout and back in and try again. If it works, you should check your /etc/rc.conf file and make sure hal is set to load in the services/daemon section and fuse is set to load in the modules section. There both needed for automounting in gnome.

Note: If you don't want to do things from the command line or fool around editing text configuration files, Arch is not the best distro for you. Arch is for advanced users and assumes a fair level of sophistication at the command line and familiarity with linux configuration. With Arch you are responsible for configuring and maintaining your system. It's nice for the advanced user because you can set things up exactly the way you want without anything extra being installed or getting in the way. With that flexibility comes the burden of knowing what to do because arch isn't going to assume it knows what you want to do.

Last edited by kilgoretrout; 07-22-2010 at 01:02 PM.
 
Old 07-22-2010, 01:11 PM   #6
Colonel-1990
Member
 
Registered: Feb 2005
Posts: 71

Original Poster
Rep: Reputation: 15
It may be the ntfs-3g that I need, it seems to ring a bell from past installation configuration. As I say, as soon as i've got the data from it, I will no longer need to use NTFS. I will try ntfs-3g when i get a second. I already have fuse.

And I have to disagree with you on Arch not being the best distro for me. I've used it on and off since 2005 I believe, and I have tried to use more 'user orientated' distros such as Ubuntu, Xubuntu, Fedora and such like, and they are just too closed and restricted for me. And the whole point in using Arch is that if I so want... I can have it setup to automatically do things, or if id rather manually do things from the command line, then I can... thats the whole point of Arch is it not?. The other thing that I like about using Arch, is the fact that it forces me to learn how to use the os from the base up, so I have to learn about basic things to be able to configure advanced things, which gives me a way better understanding of linux than I would get from using something like Ubuntu or Fedora. As I said before, ive been using command line options for years and Id just like certain things now to have interfaces, which is why im using Arch, because I can choose to do that. It might take me some time to get it right, and might take a lot of questions on forums and stuff like that, but in the end ill get it how i want it. I guess its all just a matter of opinion Kilgoretrout.


<EDIT>Right, installing NTFS-3g has fixed the problem, and I can now mount the filesystem manually using mount -t ntfs-3g /mnt/backupdrive, and I can see everything. I have added this to fstab along with my other 2 ext4 partitions on my main 500gig hard drive. But I can't seem to copy anything to or from any of the partitions. My fstab looks like this:

Quote:
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
devpts /dev/pts devpts defaults 0 0
shm /dev/shm tmpfs nodev,nosuid 0 0

#/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
#/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
#/dev/fd0 /media/fl auto user,noauto 0 0

/dev/sda1 /boot ext4 defaults 0 1
/dev/sda2 / ext4 defaults 0 1

/dev/sda5 /mnt/Music ext4 rw,user,auto 0 0
/dev/sda6 /mnt/Media ext4 rw,user,auto 0 0

/dev/sdb1 /mnt/backupdrive ntfs-3g rw,user,auto 0 0
Does this look ok? Have I done anything thats not ideal?. Also, is mounting all the partitions to /mnt/"name" good practice or is there a better way of doing this? I have set rw, so in theory I should be able to read and write on all the paritions, but it doesn't seem to be letting me.


Any ideas?</EDIT>

Thanks,
Scott.

Last edited by Colonel-1990; 07-22-2010 at 02:56 PM.
 
Old 07-22-2010, 03:11 PM   #7
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
With sda5 and sda6 mounted, as root run:

# chmod 777 /mnt/Music
# chmod 777 /mnt/Media

See my prior post re chmod. The rw fstab option is not for linux filesystems. Just chmod the mount points with the partitions mounted if you want to have rw access to a linux formatted partition. See man chmod for an explanation of the numeric codes involved.
 
Old 07-22-2010, 03:20 PM   #8
Colonel-1990
Member
 
Registered: Feb 2005
Posts: 71

Original Poster
Rep: Reputation: 15
Ah yes, thats sorted it now.

Thanks so much kilgoretrout. Going to have a read of the manual for chmod so I know how it all works in future.

Scott.
 
  


Reply



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
Im thinking I am having permission problems with oblogout and openbox in arch. bret381 Arch 3 04-21-2010 04:42 PM
Compiz-GNOME question on Arch Linux. lupusarcanus Linux - Software 1 03-06-2010 11:46 PM
GDM/GNOME stops loading in Arch Linux Nielssonnich Linux - Software 8 01-24-2010 05:21 AM
Arch linux and setting up gnome BlackFedora Linux - Newbie 13 06-17-2009 07:09 AM
Arch Linux Gnome bigbossandy Linux - Newbie 7 12-26-2003 09:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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