From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-81471-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1KERcK-0006w4-8b
	for garchives@archives.gentoo.org; Thu, 03 Jul 2008 16:25:08 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 9469CE0191;
	Thu,  3 Jul 2008 16:24:56 +0000 (UTC)
Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.244])
	by pigeon.gentoo.org (Postfix) with ESMTP id 7064DE0191
	for <gentoo-user@lists.gentoo.org>; Thu,  3 Jul 2008 16:24:56 +0000 (UTC)
Received: by an-out-0708.google.com with SMTP id c28so174795ana.47
        for <gentoo-user@lists.gentoo.org>; Thu, 03 Jul 2008 09:24:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from:to
         :subject:in-reply-to:mime-version:content-type
         :content-transfer-encoding:content-disposition:references;
        bh=P3uFJ++3XIqTwRi7rP928mE59zsc1Xa4gvCq0ZKOYIg=;
        b=EJ170h/AAMoh9RdQDErN5p+BJnu6a8Pnk0ftQVU1lj3TofmWQQIIxxqfHDiRcljFoA
         sEFS4ZpTb6ZymXYa2Lgk+cWtQnd7Z/cyXsOgD9mz/W5opUwtzo/L7cuu3YeaAv/rNGUg
         lEsvBNu0ljPQDnsp09g3NTseYJY8UaHapLJbE=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:to:subject:in-reply-to:mime-version
         :content-type:content-transfer-encoding:content-disposition
         :references;
        b=Zd1SuDdCnn7X8p99JmMXhH8xmztRK249UWMdCvQHjugld1jxRs3udyslmrMJ4b+9LX
         Y6rhzCq5H3gxnQARWWgM9XP0IOnqtR2dE3Ue4s2r5GdV5bB6xdpYaUV9Yg3b8Mo5yR3F
         LP4pL/jIDNfznP3AIeyTjrvnnV7Ani88N0odo=
Received: by 10.100.91.17 with SMTP id o17mr43746anb.150.1215102296028;
        Thu, 03 Jul 2008 09:24:56 -0700 (PDT)
Received: by 10.100.198.3 with HTTP; Thu, 3 Jul 2008 09:24:55 -0700 (PDT)
Message-ID: <558a8f1a0807030924o20afd56eye8e58a7b91209a82@mail.gmail.com>
Date: Thu, 3 Jul 2008 13:24:55 -0300
From: "Ricardo Bevilacqua" <rus.spes@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Problem mounting cdrom,cdrw,usb
In-Reply-To: <722052.65960.qm@web65515.mail.ac4.yahoo.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <200807030744.38816.alan.mckinnon@gmail.com>
	 <722052.65960.qm@web65515.mail.ac4.yahoo.com>
X-Archives-Salt: d1c4150b-064e-4e00-9fa6-dd86d753954b
X-Archives-Hash: 0dcf483bffa2f1cf4061459a5a5653f2

2008/7/3 Norman Hakim <desprado_mariachi@yahoo.com>:
> Hi,
>
> I've tried to add this line /dev/cdrom /mnt/cdrom      auto
>   noauto,ro,user     0 0 and this is the output:
>
> bash: /dev/cdrom: Permission denied
>
> If i mount it manually it is ok,no problem at all. I have no idea how i want to solve this problem.
>
>
>
> Regards,
> Norman

Norman,

I guess that when you mounted manually, you did it as root.

Linux is very safe, and won't let you do anything if you do not have permission.

To set which user can and can not do certain things, there is
something called "groups".

Your user belongs to a group, and then it can do certain things, like,
for example, accessing your cdrom, playing audio, using usb, etc.

You can see a good explanation of this at chapter 11 of the Gentoo Handbook [1].

So, my guess is that when you created your user for daily use, you did
not include it in the "cdrom" group. Just type:

$ groups

As user to see which groups is your user in.

For example, this is my user and the groups it belongs to:

ric@tux ~ $ groups
wheel floppy audio cdrom video games usb portage plugdev ric

If you want to add your user to a new group, for example cdrom, do the
following:

1 - Check which groups you already belong with:
$ groups

(NOTE: you can skip this step, but it is useful to know which groups
are you already in.)

2- Log in as root.

3- Add your user to a new group with:

# usermod -a -G [goups] [user]

For this example, supposing your user is "norman" and you want to add
it to the cdrom group then:

# usermod -a -G cdrom norman


And that should be all.

Regards,

Richard.


[1] http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=11
-- 
gentoo-user@lists.gentoo.org mailing list