Re: USB key accepts data only as root

2010-04-27 Thread David Kinyua
Thank you for this Camaleón, I was just about to ask a similar question.

On 4/26/2010 7:33 PM, Camaleón wrote:
 On Sun, 25 Apr 2010 21:16:31 +0200, Merciadri Luca wrote:
 
 To put data on my USB key, I need to be root. This does not sound
 normal. How can I tweak this?
 
 Not normal.
 
 When I attach a flash drive I get:
 
 s...@stt008:~$ mount | grep media
 /dev/sdc1 on /media/disk type vfat 
 (rw,nosuid,nodev,uhelper=hal,shortname=lower,uid=1000)
 
 Look that uid=1000.
 
 s...@stt008:~$ ls -l /media/ | grep disk
 drwxr-xr-x 3 sm01 root 16384 ene  1  1970 disk
 
 Open GConf Editor and navigate to /system/storage/default_options/vfat 
 key. It should say:
 
 mount_options [shortname=lower,uid=]
 
 Also, check your /etc/fstab file, there should be nothing about the usb 
 flash drive. This is auto-handle by HAL and gnome-mount.
 
 Greetings,
 

-- 



“The first lesson of economics is scarcity: There is never enough of
anything to satisfy all those who want it. The first lesson of politics
is to disregard the first lesson of economics.”

~Thomas Sowell


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4bd7082e.7000...@aim.com



Re: USB key accepts data only as root

2010-04-27 Thread Merciadri Luca
David Kinyua wrote:
 Thank you for this Camaleón, I was just about to ask a similar question.

 On 4/26/2010 7:33 PM, Camaleón wrote:
   
 On Sun, 25 Apr 2010 21:16:31 +0200, Merciadri Luca wrote:

 
 To put data on my USB key, I need to be root. This does not sound
 normal. How can I tweak this?
   
 Not normal.
 
Reassuring.
 When I attach a flash drive I get:

 s...@stt008:~$ mount | grep media
 /dev/sdc1 on /media/disk type vfat 
 (rw,nosuid,nodev,uhelper=hal,shortname=lower,uid=1000)
 
$ mount | grep media
/dev/sdd1 on /media/disk-1 type ext3 (rw,nosuid,nodev,uhelper=hal)


# mount | grep media
/dev/sdd1 on /media/disk-1 type ext3 (rw,nosuid,nodev,uhelper=hal)

 Look that uid=1000.
 
No such one here. Normal?
 s...@stt008:~$ ls -l /media/ | grep disk
 drwxr-xr-x 3 sm01 root 16384 ene  1  1970 disk
 
$ ls -l /media/ | grep disk
drwxr-xr-x 3 root root 4096 2009-09-04 19:30 disk
drwxr-xr-x 3 root root 4096 2010-04-25 13:30 disk-1

# ls -l /media/ | grep disk
drwxr-xr-x 3 root root 4096 2009-09-04 19:30 disk
drwxr-xr-x 3 root root 4096 2010-04-25 13:30 disk-1

 Open GConf Editor and navigate to /system/storage/default_options/vfat 
 key. It should say:

 mount_options [shortname=lower,uid=]
 
That is precisely what it says.
 Also, check your /etc/fstab file, there should be nothing about the usb 
 flash drive. This is auto-handle by HAL and gnome-mount.
 
There is no line about it, unfortunately.

-- 
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
I use PGP. If there is an incompatibility problem with your mail
client, please contact me.






signature.asc
Description: OpenPGP digital signature


Re: USB key accepts data only as root

2010-04-27 Thread Camaleón
On Tue, 27 Apr 2010 18:07:15 +0200, Merciadri Luca wrote:

 David Kinyua wrote:
 Thank you for this Camaleón, I was just about to ask a similar
 question.

 On 4/26/2010 7:33 PM, Camaleón wrote:

 To put data on my USB key, I need to be root. This does not sound
 normal. How can I tweak this?
   
 Not normal.
 
 Reassuring.

Yes, at least for *vfat* formatted USB keys.

(...)

 Look that uid=1000.
 
 No such one here. Normal?

Yes. Because yours is ext3 and ext3 is a permission-aware filesystem. 

 Also, check your /etc/fstab file, there should be nothing about the
 usb flash drive. This is auto-handle by HAL and gnome-mount.
 
 There is no line about it, unfortunately.

Your problem is that ext3 honors users and permissions :-)

So, just apply the permissions you want to that media device and that 
should be all.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.04.27.16.46...@gmail.com



Re: USB key accepts data only as root

2010-04-26 Thread Merciadri Luca
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Lisi lisi.re...@gmail.com writes:

 On Sunday 25 April 2010 21:06:14 Merciadri Luca wrote:
 Ron Johnson ron.l.john...@cox.net writes:
  On 04/25/2010 02:47 PM, Merciadri Luca wrote:
  Ron Johnson wrote:
  Not enough information.
 
  Sorry.
 
  Automounted from a DE, or manually from the CLI?
 
  Automounted, but the related folder is still there (in /media/) even
  when the USB key is disconnected.
 
  What are the ownership and privs on the mount point?  And the raw
  device?
 
  ==
  /media# ls -al
  total 28
  drwxrwxrwx  6 root root 4096 2010-04-25 13:26 .
  drwxr-xr-x 23 root root 4096 2010-01-27 11:13 ..
  drwxr-xr-x  3 root root 4096 2009-09-04 19:30 disk
  drwxr-xr-x  3 root root 4096 2010-04-25 13:30 disk-1
  lrwxrwxrwx  1 root root7 2009-07-17 17:01 floppy -  floppy0
  drwxr-xr-x  2 root root 4096 2009-07-17 17:01 floppy0
  -rw-r--r--  1 root root  299 2010-04-25 13:26 .hal-mtab
  -rw---  1 root root0 2010-04-25 09:31 .hal-mtab-lock
  drwx--  2 root root 4096 2009-08-29 22:20 KUBUNTU_LAPTOP22
  ==
 
  It happens for every removable disk, actually. The raw device is
  /dev/sde1:
 
  ==
  # ls -al | grep sde
  brw-rw  1 root floppy8,  64 2010-04-25 21:45 sde
  brw-rw  1 root floppy8,  65 2010-04-25 21:45 sde1
  ==
 
  $ echo $USER
  me

 $ echo $USER
 merciadriluca

  $ dir /media | grep CENTON
  drwxr-xr-x  2 me   root 4096 1969-12-31 18:00:00 CENTON USB/
 
  ~$ dir /dev/sdh
  brw-rw 1 root floppy 8, 112 2010-04-22 16:19:48 /dev/sdh
 
  You wouldn't happen to be logged in as root, would you?

 quote /media# ls -al /quote  (from previous email from Merciadri)

 At this point you obviously are root, even tho' you will not have been able 
 to 
 log-in as root.  ?
I did not start _a root session_ but I did `su', okay. But I need to
do this. If I do not do this, I do not have access to the removable
devices which are connected through USB.

- -- 
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
- -- 

Nobody leaves us, we only leave others.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 http://mailcrypt.sourceforge.net/

iEYEARECAAYFAkvVPUIACgkQM0LLzLt8MhzfuQCgke6OIp/EZywUEFKx0UKm+ffD
TCoAni2aoNCPTibA5myjLsln5Xg6C+C9
=xht+
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87zl0qu1mj@merciadriluca-eee.workgroup



Re: USB key accepts data only as root

2010-04-26 Thread Ron Johnson

On 04/26/2010 02:14 AM, Merciadri Luca wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Lisilisi.re...@gmail.com  writes:


On Sunday 25 April 2010 21:06:14 Merciadri Luca wrote:

Ron Johnsonron.l.john...@cox.net  writes:

On 04/25/2010 02:47 PM, Merciadri Luca wrote:

Ron Johnson wrote:

Not enough information.


Sorry.


Automounted from a DE, or manually from the CLI?


Automounted, but the related folder is still there (in /media/) even
when the USB key is disconnected.


What are the ownership and privs on the mount point?  And the raw
device?


==
/media# ls -al
total 28
drwxrwxrwx  6 root root 4096 2010-04-25 13:26 .
drwxr-xr-x 23 root root 4096 2010-01-27 11:13 ..
drwxr-xr-x  3 root root 4096 2009-09-04 19:30 disk
drwxr-xr-x  3 root root 4096 2010-04-25 13:30 disk-1
lrwxrwxrwx  1 root root7 2009-07-17 17:01 floppy -   floppy0
drwxr-xr-x  2 root root 4096 2009-07-17 17:01 floppy0
-rw-r--r--  1 root root  299 2010-04-25 13:26 .hal-mtab
-rw---  1 root root0 2010-04-25 09:31 .hal-mtab-lock
drwx--  2 root root 4096 2009-08-29 22:20 KUBUNTU_LAPTOP22
==

It happens for every removable disk, actually. The raw device is
/dev/sde1:

==
# ls -al | grep sde
brw-rw  1 root floppy8,  64 2010-04-25 21:45 sde
brw-rw  1 root floppy8,  65 2010-04-25 21:45 sde1
==


$ echo $USER
me


$ echo $USER
merciadriluca


$ dir /media | grep CENTON
drwxr-xr-x  2 me   root 4096 1969-12-31 18:00:00 CENTON USB/

~$ dir /dev/sdh
brw-rw 1 root floppy 8, 112 2010-04-22 16:19:48 /dev/sdh

You wouldn't happen to be logged in as root, would you?


quote  /media# ls -al/quote   (from previous email from Merciadri)

At this point you obviously are root, even tho' you will not have been able to
log-in as root.  ?

I did not start _a root session_ but I did `su', okay. But I need to
do this. If I do not do this, I do not have access to the removable
devices which are connected through USB.



We need to see what it looks like when you are bog standard 
merciadriluca.


--
Dissent is patriotic, remember?


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4bd5414f.5060...@cox.net



Re: USB key accepts data only as root

2010-04-26 Thread Camaleón
On Sun, 25 Apr 2010 21:16:31 +0200, Merciadri Luca wrote:

 To put data on my USB key, I need to be root. This does not sound
 normal. How can I tweak this?

Not normal.

When I attach a flash drive I get:

s...@stt008:~$ mount | grep media
/dev/sdc1 on /media/disk type vfat 
(rw,nosuid,nodev,uhelper=hal,shortname=lower,uid=1000)

Look that uid=1000.

s...@stt008:~$ ls -l /media/ | grep disk
drwxr-xr-x 3 sm01 root 16384 ene  1  1970 disk

Open GConf Editor and navigate to /system/storage/default_options/vfat 
key. It should say:

mount_options [shortname=lower,uid=]

Also, check your /etc/fstab file, there should be nothing about the usb 
flash drive. This is auto-handle by HAL and gnome-mount.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.04.26.09.33...@gmail.com



Re: USB key accepts data only as root

2010-04-26 Thread Liam O'Toole
On 2010-04-25, Merciadri Luca luca.mercia...@student.ulg.ac.be wrote:
 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --enigD4EBF6DE390BB397F7830763
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable

 Hi,

 To put data on my USB key, I need to be root. This does not sound
 normal. How can I tweak this?

Is the user a member of the plugdev group?


 Thanks.

 --=20
 Merciadri Luca
 See http://www.student.montefiore.ulg.ac.be/~merciadri/

-- 
Liam O'Toole
Birmingham, United Kingdom



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/slrnhtao9h.bu7.liam.p.oto...@dipsy.selfip.org



Re: USB key accepts data only as root

2010-04-25 Thread Ron Johnson

On 04/25/2010 02:16 PM, Merciadri Luca wrote:

Hi,

To put data on my USB key, I need to be root. This does not sound
normal. How can I tweak this?



Not enough information.

Automounted from a DE, or manually from the CLI?

What are the ownership and privs on the mount point?  And the raw 
device?


--
Dissent is patriotic, remember?


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4bd499b5.8040...@cox.net



Re: USB key accepts data only as root

2010-04-25 Thread Merciadri Luca
Ron Johnson wrote:
 Not enough information.
Sorry.
 Automounted from a DE, or manually from the CLI?
Automounted, but the related folder is still there (in /media/) even
when the USB key is disconnected.
 What are the ownership and privs on the mount point?  And the raw device?
==
/media# ls -al
total 28
drwxrwxrwx  6 root root 4096 2010-04-25 13:26 .
drwxr-xr-x 23 root root 4096 2010-01-27 11:13 ..
drwxr-xr-x  3 root root 4096 2009-09-04 19:30 disk
drwxr-xr-x  3 root root 4096 2010-04-25 13:30 disk-1
lrwxrwxrwx  1 root root7 2009-07-17 17:01 floppy - floppy0
drwxr-xr-x  2 root root 4096 2009-07-17 17:01 floppy0
-rw-r--r--  1 root root  299 2010-04-25 13:26 .hal-mtab
-rw---  1 root root0 2010-04-25 09:31 .hal-mtab-lock
drwx--  2 root root 4096 2009-08-29 22:20 KUBUNTU_LAPTOP22
==

It happens for every removable disk, actually. The raw device is /dev/sde1:

==
# ls -al | grep sde
brw-rw  1 root floppy8,  64 2010-04-25 21:45 sde
brw-rw  1 root floppy8,  65 2010-04-25 21:45 sde1
==


-- 
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
I use PGP. If there is an incompatibility problem with your mail
client, please contact me.


The nail that sticks up will be hammered down.



signature.asc
Description: OpenPGP digital signature


Re: USB key accepts data only as root

2010-04-25 Thread Ron Johnson

On 04/25/2010 02:47 PM, Merciadri Luca wrote:

Ron Johnson wrote:

Not enough information.

Sorry.

Automounted from a DE, or manually from the CLI?

Automounted, but the related folder is still there (in /media/) even
when the USB key is disconnected.

What are the ownership and privs on the mount point?  And the raw device?

==
/media# ls -al
total 28
drwxrwxrwx  6 root root 4096 2010-04-25 13:26 .
drwxr-xr-x 23 root root 4096 2010-01-27 11:13 ..
drwxr-xr-x  3 root root 4096 2009-09-04 19:30 disk
drwxr-xr-x  3 root root 4096 2010-04-25 13:30 disk-1
lrwxrwxrwx  1 root root7 2009-07-17 17:01 floppy -  floppy0
drwxr-xr-x  2 root root 4096 2009-07-17 17:01 floppy0
-rw-r--r--  1 root root  299 2010-04-25 13:26 .hal-mtab
-rw---  1 root root0 2010-04-25 09:31 .hal-mtab-lock
drwx--  2 root root 4096 2009-08-29 22:20 KUBUNTU_LAPTOP22
==

It happens for every removable disk, actually. The raw device is /dev/sde1:

==
# ls -al | grep sde
brw-rw  1 root floppy8,  64 2010-04-25 21:45 sde
brw-rw  1 root floppy8,  65 2010-04-25 21:45 sde1
==



$ echo $USER
me

$ dir /media | grep CENTON
drwxr-xr-x  2 me   root 4096 1969-12-31 18:00:00 CENTON USB/

~$ dir /dev/sdh
brw-rw 1 root floppy 8, 112 2010-04-22 16:19:48 /dev/sdh


You wouldn't happen to be logged in as root, would you?

--
Dissent is patriotic, remember?


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4bd49f23.10...@cox.net



Re: USB key accepts data only as root

2010-04-25 Thread Merciadri Luca
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ron Johnson ron.l.john...@cox.net writes:

 On 04/25/2010 02:47 PM, Merciadri Luca wrote:
 Ron Johnson wrote:
 Not enough information.
 Sorry.
 Automounted from a DE, or manually from the CLI?
 Automounted, but the related folder is still there (in /media/) even
 when the USB key is disconnected.
 What are the ownership and privs on the mount point?  And the raw device?
 ==
 /media# ls -al
 total 28
 drwxrwxrwx  6 root root 4096 2010-04-25 13:26 .
 drwxr-xr-x 23 root root 4096 2010-01-27 11:13 ..
 drwxr-xr-x  3 root root 4096 2009-09-04 19:30 disk
 drwxr-xr-x  3 root root 4096 2010-04-25 13:30 disk-1
 lrwxrwxrwx  1 root root7 2009-07-17 17:01 floppy -  floppy0
 drwxr-xr-x  2 root root 4096 2009-07-17 17:01 floppy0
 -rw-r--r--  1 root root  299 2010-04-25 13:26 .hal-mtab
 -rw---  1 root root0 2010-04-25 09:31 .hal-mtab-lock
 drwx--  2 root root 4096 2009-08-29 22:20 KUBUNTU_LAPTOP22
 ==

 It happens for every removable disk, actually. The raw device is /dev/sde1:

 ==
 # ls -al | grep sde
 brw-rw  1 root floppy8,  64 2010-04-25 21:45 sde
 brw-rw  1 root floppy8,  65 2010-04-25 21:45 sde1
 ==


 $ echo $USER
 me
$ echo $USER
merciadriluca

 $ dir /media | grep CENTON
 drwxr-xr-x  2 me   root 4096 1969-12-31 18:00:00 CENTON USB/

 ~$ dir /dev/sdh
 brw-rw 1 root floppy 8, 112 2010-04-22 16:19:48 /dev/sdh

 You wouldn't happen to be logged in as root, would you?
I am not logged as root. Unfortunately. I do not understand this
problem. It happens for every removable device: USB keys, external
HDDs, etc.


- -- 
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
- -- 

Man is truly himself when he's alone.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 http://mailcrypt.sourceforge.net/

iEYEARECAAYFAkvUoLYACgkQM0LLzLt8MhycrgCfaz2Tu+5UsazVXXe6AQfjr4tp
7IwAnROwXdusiAFhs9e3aRq0R+NiF8Yf
=0PNb
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/87y6gbe1qh@merciadriluca-station.merciadriluca



Re: USB key accepts data only as root

2010-04-25 Thread Lisi
On Sunday 25 April 2010 21:06:14 Merciadri Luca wrote:
 Ron Johnson ron.l.john...@cox.net writes:
  On 04/25/2010 02:47 PM, Merciadri Luca wrote:
  Ron Johnson wrote:
  Not enough information.
 
  Sorry.
 
  Automounted from a DE, or manually from the CLI?
 
  Automounted, but the related folder is still there (in /media/) even
  when the USB key is disconnected.
 
  What are the ownership and privs on the mount point?  And the raw
  device?
 
  ==
  /media# ls -al
  total 28
  drwxrwxrwx  6 root root 4096 2010-04-25 13:26 .
  drwxr-xr-x 23 root root 4096 2010-01-27 11:13 ..
  drwxr-xr-x  3 root root 4096 2009-09-04 19:30 disk
  drwxr-xr-x  3 root root 4096 2010-04-25 13:30 disk-1
  lrwxrwxrwx  1 root root7 2009-07-17 17:01 floppy -  floppy0
  drwxr-xr-x  2 root root 4096 2009-07-17 17:01 floppy0
  -rw-r--r--  1 root root  299 2010-04-25 13:26 .hal-mtab
  -rw---  1 root root0 2010-04-25 09:31 .hal-mtab-lock
  drwx--  2 root root 4096 2009-08-29 22:20 KUBUNTU_LAPTOP22
  ==
 
  It happens for every removable disk, actually. The raw device is
  /dev/sde1:
 
  ==
  # ls -al | grep sde
  brw-rw  1 root floppy8,  64 2010-04-25 21:45 sde
  brw-rw  1 root floppy8,  65 2010-04-25 21:45 sde1
  ==
 
  $ echo $USER
  me

 $ echo $USER
 merciadriluca

  $ dir /media | grep CENTON
  drwxr-xr-x  2 me   root 4096 1969-12-31 18:00:00 CENTON USB/
 
  ~$ dir /dev/sdh
  brw-rw 1 root floppy 8, 112 2010-04-22 16:19:48 /dev/sdh
 
  You wouldn't happen to be logged in as root, would you?

quote /media# ls -al /quote  (from previous email from Merciadri)

At this point you obviously are root, even tho' you will not have been able to 
log-in as root.  ?

Lisi


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201004252227.55515.lisi.re...@gmail.com