Re: Resolved: Can't write to external usb drive as normal user despite efforts

2011-11-27 Thread Sven Hoexter
On Sat, Nov 26, 2011 at 04:08:31PM -0800, kei...@strucktower.com wrote:

Hi,

 I still haven't found a good explanation for the umask option- nothing in
 man pages under umask, very little under pam_umask or pam ...

http://en.wikipedia.org/wiki/Umask

man 2 umask is in manpages-dev in case that's not installed on your
system currently.

'help umask' and/or the manpage of your shell might be of some help too.

HTH
Sven
-- 
I don't know much, but I do know this:
With a golden heart, comes a rebel fist
 [ Streetlight Manifesto - Here's To Life ]


-- 
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/2027081927.GA1741@colin



Re: Resolved: Can't write to external usb drive as normal user despite efforts

2011-11-27 Thread keitho
Thank you Sven-

The wikipedia article was just what I needed :-)

Keith

 On Sat, Nov 26, 2011 at 04:08:31PM -0800, kei...@strucktower.com wrote:

 Hi,

 I still haven't found a good explanation for the umask option- nothing
 in
 man pages under umask, very little under pam_umask or pam ...

 http://en.wikipedia.org/wiki/Umask

 man 2 umask is in manpages-dev in case that's not installed on your
 system currently.

 'help umask' and/or the manpage of your shell might be of some help too.

 HTH
 Sven
 --
 I don't know much, but I do know this:
 With a golden heart, comes a rebel fist
  [ Streetlight Manifesto - Here's To Life ]




--
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/616cdafd17d005a3e891354fce676e5a.squir...@webmail.strucktower.com



Re: Resolved: Can't write to external usb drive as normal user despite efforts

2011-11-27 Thread Brian
On Sat 26 Nov 2011 at 16:07:20 -0800, kei...@strucktower.com wrote:

 Thanks to Camaleon, John Lindsay, and Chris Brennan for responding.
 
 This statement put into my /etc/fstab seems to have worked, and auto mount
 as well:
 
 UUID=9419-5112/usbvfatuid=1000,gid=1000,utf8,umask= 0 0
 
 The UUID is obtained via blkid, the uid and gid are for my keith account.

I'd be dissatisfied with myself if I to do this in order to write to a
removable device. The device would only be available to one user, which
may be what you want, but it seems a bit drastic to limit the system use
in such a way. Granted you can replace 'uid=' etc with 'user', but in
that case you had better have 'noauto' there too. And don't repartition
too often, otherwise you will wear out the fstab file.

For every USB stick plugged in you'll be becoming root, getting a UUID
for each partition and editing fstab. It won't make a good impression on
visitors who only want to show you the 10,000 photographs they took on a
recent holiday - especially if the procedure doesn't immediately come to
mind!

You were unable to write to the drive because a partition had been
mounted as root. The usual Debian way of dealing with that situation is
to give users permission to mount removable devices by putting them in
the plugdev group. It's a bit more involved with GNOME+gdm/gdm3 but the
process is hidden from view and designed to be handled automatically.


-- 
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/2027160732.GM3655@desktop



Re: Resolved: Can't write to external usb drive as normal user despite efforts

2011-11-27 Thread Camaleón
On Sat, 26 Nov 2011 16:07:20 -0800, keitho wrote:

 Thanks to Camaleon, John Lindsay, and Chris Brennan for responding.
 
 This statement put into my /etc/fstab seems to have worked, and auto
 mount as well:
 
 UUID=9419-5112/usbvfatuid=1000,gid=1000,utf8,umask= 0 0
 
 The UUID is obtained via blkid, the uid and gid are for my keith
 account.

It is *much better* to use the UUID than the mutable /dev/sdx :-)

 I still haven't found a good explanation for the umask option- nothing
 in man pages under umask, very little under pam_umask or pam ...

man mount and scroll to vfat, there are many options you can tweak 
(umask, dmask, fmask). A value of umask= will set the perms of the 
USB files to read/write/execute for user/group/others. You can, of 
course, adjust this value to something that better suits your needs.

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.2011.11.27.17.18...@gmail.com



Re: Resolved: Can't write to external usb drive as normal user despite efforts

2011-11-27 Thread SM
On Sun, Nov 27, 2011 at 04:07:32PM +, Brian wrote:
 The usual Debian way of dealing with that situation is
 to give users permission to mount removable devices by putting them in
 the plugdev group.

Or just install pmount. Plug the device in, do dmesg | tail to check
the device and pmount /dev/sdb1 to mount it in /media/sdb1.
Everything done as $USER.

-- 
:wq


-- 
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/2027174953.ga20...@hilla.kapsi.fi



Re: Resolved: Can't write to external usb drive as normal user despite efforts

2011-11-27 Thread Brian
On Sun 27 Nov 2011 at 19:49:53 +0200, SM wrote:

 On Sun, Nov 27, 2011 at 04:07:32PM +, Brian wrote:
  The usual Debian way of dealing with that situation is
  to give users permission to mount removable devices by putting them in
  the plugdev group.
 
 Or just install pmount. Plug the device in, do dmesg | tail to check
 the device and pmount /dev/sdb1 to mount it in /media/sdb1.
 Everything done as $USER.

You do need to be in group plugdev to use pmount but it is a nifty
utility and the placing of users in groups does, of course, give much
finer control over who can do what than the methods available in mount.

Using GNOME, however, the mounting and display of files on a vfat
partiton just takes place without any fuss, so I can see why pmount
doesn't attract as much attention.


-- 
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/2027193459.GO3655@desktop



Re: Resolved: Can't write to external usb drive as normal user despite efforts

2011-11-27 Thread Celejar
On Sun, 27 Nov 2011 19:49:53 +0200
SM kas...@hilla.kapsi.fi wrote:

 On Sun, Nov 27, 2011 at 04:07:32PM +, Brian wrote:
  The usual Debian way of dealing with that situation is
  to give users permission to mount removable devices by putting them in
  the plugdev group.
 
 Or just install pmount. Plug the device in, do dmesg | tail to check
 the device and pmount /dev/sdb1 to mount it in /media/sdb1.
 Everything done as $USER.

Well, that's actually what I do, although Windows users just shake
their heads at me, and wonder why I'm using some OS from the 60's ...

Celejar
-- 
foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


-- 
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/2027232019.ac1562ad5ac1550c4f0fc...@gmail.com



Resolved: Can't write to external usb drive as normal user despite efforts

2011-11-26 Thread keitho
Thanks to Camaleon, John Lindsay, and Chris Brennan for responding.

This statement put into my /etc/fstab seems to have worked, and auto mount
as well:

UUID=9419-5112  /usbvfatuid=1000,gid=1000,utf8,umask= 0 0

The UUID is obtained via blkid, the uid and gid are for my keith account.

I still haven't found a good explanation for the umask option- nothing in
man pages under umask, very little under pam_umask or pam ...

Keith

 On Sat, 26 Nov 2011 08:47:12 -0800, keitho wrote:

 I have an external usb drive on which I have a fat32 formatted
 partition. I can't figure out how to mount it so that I can write to it
 as a normal user.

 (...)

 You need to set the right perms for the mounted partition, either
 manually or by letting the automounter facility (if there is any
 available) does its job, for example:

 mount -t vfat -o uid=keith,gid=keith,utf8,umask= /dev/sda4 /usb

 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/3322f7bb94e91e09d6b3de167e97aee2.squir...@webmail.strucktower.com



Resolved: Can't write to external usb drive as normal user despite efforts

2011-11-26 Thread keitho
Thanks to Camaleon, John Lindsay, and Chris Brennan for responding.

This statement put into my /etc/fstab seems to have worked, and auto mount
as well:

UUID=9419-5112  /usbvfatuid=1000,gid=1000,utf8,umask= 0 0

The UUID is obtained via blkid, the uid and gid are for my keith account.

I still haven't found a good explanation for the umask option- nothing in
man pages under umask, very little under pam_umask or pam ...

Keith

 On Sat, 26 Nov 2011 08:47:12 -0800, keitho wrote:

 I have an external usb drive on which I have a fat32 formatted
 partition. I can't figure out how to mount it so that I can write to it
 as a normal user.

 (...)

 You need to set the right perms for the mounted partition, either
 manually or by letting the automounter facility (if there is any
 available) does its job, for example:

 mount -t vfat -o uid=keith,gid=keith,utf8,umask= /dev/sda4 /usb

 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/f82a12ee32af972a08748345966d134a.squir...@webmail.strucktower.com