FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 09-04-2012, 03:50 AM
lina
 
Default some problems in mounting usb

Hi,

there is a usb stick,

1] mount via command line

# mount /dev/sdb1 /mnt/try

when I tried to mount as:

:/mnt/try# ls -lrt *.pdf
-rwxr-xr-x 1 root root 1827158 Jun 18 06:29 PIIS0006349512003256.pdf

it showed me as x x x

# chmod -x PIIS0006349512003256.pdf

# ls -lrt PIIS0006349512003256.pdf
-rwxr-xr-x 1 root root 1827158 Jun 18 06:29 PIIS0006349512003256.pdf


it still x x x

2] mount via click its icon,

it showed me normal.

My question is that, was the way I used to mount via command wrong?

Thanks with best regards,


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 50457A79.5000008@gmail.com">http://lists.debian.org/50457A79.5000008@gmail.com
 
Old 09-04-2012, 04:13 AM
songbird
 
Default some problems in mounting usb

lina wrote:
> Hi,
>
> there is a usb stick,
>
> 1] mount via command line
>
> # mount /dev/sdb1 /mnt/try
>
> when I tried to mount as:
>
>:/mnt/try# ls -lrt *.pdf
> -rwxr-xr-x 1 root root 1827158 Jun 18 06:29 PIIS0006349512003256.pdf
>
> it showed me as x x x
>
> # chmod -x PIIS0006349512003256.pdf
>
> # ls -lrt PIIS0006349512003256.pdf
> -rwxr-xr-x 1 root root 1827158 Jun 18 06:29 PIIS0006349512003256.pdf
>
>
> it still x x x
>
> 2] mount via click its icon,
>
> it showed me normal.
>
> My question is that, was the way I used to mount via command wrong?
>
> Thanks with best regards,

you may have settings happening via /etc/fstab
and/or udev (and i'm not an expert at udev that is
for sure).

that said...

if you have umask set it will override plain
mode settings. usually there is a umask setting
in .bashrc (or whatever your shell rc is in
either your home directory and/or the /etc
directory).

to remove x from all even with a umask use:

$ chmod a-x PIIS0006349512003256.pdf


songbird


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: jnbgh9-6q6.ln1@ID-306963.user.uni-berlin.de">http://lists.debian.org/jnbgh9-6q6.ln1@ID-306963.user.uni-berlin.de
 
Old 09-04-2012, 02:59 PM
Camaleón
 
Default some problems in mounting usb

On Tue, 04 Sep 2012 11:50:17 +0800, lina wrote:

> there is a usb stick,

(...)

> My question is that, was the way I used to mount via command wrong?

If the USB is formatted with FAT32 you have to set the perms when
mounting ("mount -t vfat -o uid=lina,gid=lina,utf8,umask=xxx...") which
is done automatically when your DE mounts it.

Remmeber that FAT32 filesystem is completely unaware about file/folder
ownership and permissions.

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/k25514$kaf$5@ger.gmane.org
 

Thread Tools




All times are GMT. The time now is 04:25 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org