Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Drive access permissions

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
ahd123
n00b
n00b
Posts: 55
Joined: Sat Nov 05, 2005 12:40 pm

Drive access permissions

  • Quote

Post by ahd123 » Thu Feb 09, 2006 11:02 pm

I'm having some problems accessing my CD/DVD RW drive and my external hard drive.
I can do both of these fine using root.

I'm using a normal user account called User. I'm a member of audio, games, users, and wheel.
UserID: 500
Login shell: /bin/bash
Home folder: /home/user

When I try to burn a disk with NeroLinux, I get an error telling me I don't have access to "/dev/hdc" (my cd drive).
Should I try adding myself to the cdrom, cdrw, or disk groups? I'm not quite sure what effect that would have, and I figured I'd better ask someone before I do something that might be a security risk.

My external hard drive problem, which I never really got an answer to.

I have the users tag added to my fstab:

Code: Select all

# This file is edited by fstab-sync - see 'man fstab-sync' for details
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't 
# needed; notail increases performance of ReiserFS (at the expense of storage 
# efficiency).  It's safe to drop the noatime options if you want and to 
# switch between notail / tail freely.

# <fs>			<mountpoint>	<type>		<opts>		<dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1		/		reiserfs	noatime,notail	0 1
/dev/hda2		none		swap		sw		0 0
/dev/hda3		/mnt/windows	vfat		users,noatime	0 0
#/dev/sda1		/media/External_Disk	ntfs	users,exec,noauto	0 0
/dev/hdc        	/mnt/cdrom	auto    	users,exec,noauto,ro	0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for 
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
none			/dev/shm	tmpfs		nodev,nosuid,noexec	0 0
none			/proc		proc		defaults		0 0
/dev/sda1               /media/External_Disk    ntfs    user,exec,noauto,managed 0 0
(As I said in my other thread, kdemediamanager adds that last line, don't know why I can't access the drive.)
So what am I doing wrong?
Top
Mben
Guru
Guru
Posts: 465
Joined: Mon Mar 29, 2004 10:28 pm
Location: New York, USA
Contact:
Contact Mben
Website

  • Quote

Post by Mben » Thu Feb 09, 2006 11:54 pm

I'm no expert on /etc/fstab, so I can't help you much there, but for cd burning and such you should add your self to the cdrw, cdrom, etc groups. I think there is a list of them all and what each group does in the gentoo documentation someplace, or you can just add your self to the ones that seem related. I can't think of any security problems, except that you will have access to your cd drive :wink:
Top
ahd123
n00b
n00b
Posts: 55
Joined: Sat Nov 05, 2005 12:40 pm

  • Quote

Post by ahd123 » Fri Feb 10, 2006 10:22 pm

I tried adding myself to every group (besides root), and still could not use my cdrw in NeroLinux or access my external drive.
Image

I can't use my FTP program either without being root, even though I tried adding myself to the FTP group.

I don't have to update anything after changing the groups, do I?

Edit: After I set the groups back to normal, I realized it's not giving me an error about my CD drive anymore, but those other errors in the image. I can burn CDs, but I just get that error when booting.
I still can't access my external drive.
Top
Gentree
Watchman
Watchman
User avatar
Posts: 5350
Joined: Tue Jul 01, 2003 12:51 am
Location: France, Old Europe

  • Quote

Post by Gentree » Sat Feb 11, 2006 12:19 am

I don't have to update anything after changing the groups, do I?
how did you change groups?? it may help.

after changing with usermod you will need to login again , dont know how kde tools deal with it , ask KDE.

type groups to see what groups you are currently in to see if it has taken effect or not .

Since linuxNero is commercial software I should ask them for tech supp when it doesnot work as you expect.

Since you're on KDE why not use K3B , it's not flawless but it works pretty well.

8)
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Top
ahd123
n00b
n00b
Posts: 55
Joined: Sat Nov 05, 2005 12:40 pm

  • Quote

Post by ahd123 » Sat Feb 11, 2006 1:16 am

I used KUser to edit the groups. As far as I know, the changes are instant.

Right now I'm just a member of these groups:

Code: Select all

user@localhost ~ $ groups
disk wheel floppy mail cron audio cdrom ftp video games cdrw usb users captive
The CD burning isn't as important to me as accessing m external drive.
Top
Gentree
Watchman
Watchman
User avatar
Posts: 5350
Joined: Tue Jul 01, 2003 12:51 am
Location: France, Old Europe

  • Quote

Post by Gentree » Sat Feb 11, 2006 1:28 am

I posted to that thread too. :wink:
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Top
Mben
Guru
Guru
Posts: 465
Joined: Mon Mar 29, 2004 10:28 pm
Location: New York, USA
Contact:
Contact Mben
Website

  • Quote

Post by Mben » Sat Feb 11, 2006 3:51 am

The cd burning bit may be an issue with nerolinux, I get that message too, but k3b and the console backends work fine (haven't used nerolinux in awhile).

The usb drive bit seems more odd, and I don't have a good suggestion.
Top
ctford0
l33t
l33t
User avatar
Posts: 774
Joined: Fri Oct 25, 2002 4:09 pm
Location: Lexington, KY,USA

  • Quote

Post by ctford0 » Sat Feb 11, 2006 4:53 am

you should check the permissons on the directory where you are mounting your usb hard drive. you must make sure that it is readable by your users group or world.

chris
Top
ahd123
n00b
n00b
Posts: 55
Joined: Sat Nov 05, 2005 12:40 pm

  • Quote

Post by ahd123 » Sat Feb 11, 2006 7:26 pm

Mben wrote:The cd burning bit may be an issue with nerolinux, I get that message too, but k3b and the console backends work fine (haven't used nerolinux in awhile).
I tried to compile k3b, but if fails.
I'm not entirely sure what went wrong. Maybe you can make sense of it (<--that's a link).

Edit: Nevermind. I synced portage and updated a bunch of packages, rebuilt the kernel (and external modules), ran revdep, and now it compiles fine.

I also fixed my FTP program. I just had to chmod the symlink in /usr/bin (which I created with root).
Top
Post Reply

9 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic