[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mounting a labeled filesystem



On Mon, Jan 12, 2015 at 06:18:13AM -0800, peter@easthope.ca wrote:
> peter@dalton:~$ grep GRN /etc/fstab
> LABEL=GRNSDHC41 /home/peter/GR auto defaults,noauto,user,users 0 0
> 
> peter@dalton:~$ mount LABEL=GRNSDHC41
> mount: must be superuser to use mount

The "user" option SHOULD allow this. What happens if you request the
mount by mountpoint, rather than by label?

 $ mount /home/peter/GR

Another alternative is to run "strace mount LABEL=GRNSDHC41" and then
read the last few lines to see where the rejection is coming from (for
example, is mount unable to read fstab, is the kernel rejecting the
mount etc etc).

> peter@dalton:~$ sudo mount LABEL=GRNSDHC41
> [sudo] password for peter: 
> peter@dalton:~$ mount | grep GR
> /dev/sda1 on /home/peter/GR type ext2 (rw,nosuid,nodev,noexec,relatime,errors=continue,user_xattr,acl)
> 
> Does anyone have a clever way to allow a user to mount a storage 
> part containing a labeled filesystem without giving a password?
> 
> Thanks,                   ... Peter E.
>  
> -- 
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 12
> Tel +1 360 639 0202   http://carnot.yi.org/   Bcc: peter at easthope. ca
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] E1YAfor-0002T2-Qg@dalton.invalid">https://lists.debian.org/[🔎] E1YAfor-0002T2-Qg@dalton.invalid
> 

Attachment: signature.asc
Description: Digital signature


Reply to: