Wrong uid and gid after system auto mounting

In linux file explorer after I click one of the NTFS partitions, the system prompts to get the password and then after mounting the partition on some point like /mnt/mountpoint the owner of the directory on which the partition is mounted is a regular user not superuser (suppose user is joe)

ls -l  drwx------ 1 joe joe 16384 Jul  4 21:45 mountpoint 

But output of mount command shows the owner id should be root:

mount /dev/sdaX on /mnt/mountpoint type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2) 

Why uid and gid are both set to 0 ? Also I am not sure what default_permissions and allow_other are doing here.

Replay

Category: linux Time: 2016-07-31 Views: 32

Related post

  • Wrong id and gid running /system/bin/sdcard 2015-02-07

    I am trying to use my ext4 sdcard properly in Stock rooted Android 4.4.4. For this, I run mount -rw -t ext4 /dev/block/mmcblk1p1 /mnt/media_rw/sdcard1 and then /system/bin/sdcard -u 1023 -g 1023 -w 1023 /mnt/media_rw/sdcard1 /storage/sdcard1 I also t

  • Nautilus remote mount resolve numeric uids and gids to names 2010-05-10

    In Gnome Nautilus I have a remote samba mount through SSH under Ubuntu 10.04 (gvfs). When I check any file properties it displays the user and group as numeric. Is there a way to make it get the names of the user and groups ? --------------Solutions-

  • Mount external ext4 with changed uid and gid 2013-10-31

    I'm trying to share a single external hard-drive between two ubuntu different machines. The problem is, my user uid and gids are different across the two machines. Is there a mount option for ext4 or ext3 that allows you to temporarily change your ui

  • file system uid and gid in linux 2012-08-19

    I came across a linux kernel tutorial and there they talked about 4 pairs of identifiers and one of them was file system uid and gid. Could someone explain me what it is and how it is different from uid and gid? --------------Solutions------------- W

  • Mapping UID and GID of local user to the mounted NFS share 2013-06-07

    I have a server with NFSv4. I am mounting contents of the home folder of remote user to local host. Able to read and write contents, but when I am checking ownership of files at the mounted volume from the local host, they all belongs to correspondin

  • How do I give CIFS mounted drive ownership to two UIDs and GIDs in my fstab file? 2015-03-11

    How can I give ownership of this to both www-data and another user called anwslx? (Both the user and group are "anwslx"). The drive is a network drive that is mounted in the fstab file. My fstab file currently looks like this: //192.168.2.20/cli

  • What is an appropriate UID and GID for a Debian package file owner? 2016-01-09

    I am currently building my own aptitude repository, and in the process of ensuring that all packages pass as many Lintian checks as possible. Currently I am struggling with 'wrong-file-owner-uid-or-gid' (initial information here, more detailed inform

  • Will there be always a pair of same UID and GID? 2014-05-14

    I have to change file/directory's ownership using chmod .I know only owners's username but want to change default group name simultaneosly . At this stage group name is not decided so I am putting same as username chown -R username:username path_to_d

  • User created with different UID and GID 2015-03-08

    I'm creating a new user in my system, by calling: sudo useradd -m -G nas -s /bin/bash alf which supposedly should create a new user with the same UID and GID. However the passwd file is appended with the line: alf:x:1004:1007::/home/alf:/bin/bash Whi

  • force ISPconfig to set UID and GID to all the webpages 2015-10-22

    Hello, is it possible to force ISPconfig to set UID and GID to all the webpages. I found out that when i delete a site and then restore it, ISPconfig sets the correct ownership of all the files and directories in the www root. I need to do so for ALL

  • Linux Kernel: uid and gid vs /etc/passwd 2013-01-15

    How does the Linux kernel deal with UIDs and GIDs? When I want to add a user to a system, does the kernel require some type of "registration" for this user (syscall?)? Does the kernel even care about which users are available in /etc/passwd or d

  • Can fstab options uid and gid be the user-group name or must they be numeric? 2013-08-20

    I'm learning how to set up a tmpfs in fstab for my www-data user and I was wondering if I can use the actual user/group name instead if the numeric ids (personal preference)? I'm on Debian with ext4, formatted with "msdos" during setup. It seems

  • How do i get centos 7 to use uids and gids from active directory? 2014-09-26

    I'm preparing for an eventual upgrade from CentOS 6 to CentOS 7. Right now, in version 6, we just use LDAP mapped to AD for authentication. This then uses the UID and GID from the Active Directory extension for Unix. In my experimentation with CentOS

  • How to refer to an existing uid and gid in Ansible? 2015-12-14

    In my playbook I install the amavis package. Later in a task I use the mount module to setup a ramdisk (tmpfs). In order to let the tmpfs-ramdisk be owned by the uid and gid created during amavis package install (amavis-user and amavis-group, in /etc

  • Add a new user with a specific uid and gid 2011-12-19

    We have a mixed mac and linux environment at work, to make life easy we use the same uid, gid for each user both on the mac and linux side (I believe this is a standard practice). The problem is, when you add a new user on a mac, there is no way to s

  • CentOS - You must give (non-root) uid and gid 2012-05-30

    I'm trying to add users to ftp using pure-ftp I used the following command: pure-pw useradd test-user -u ftpgroup -d /path/to/my/dir And I get the following error: You must give (non-root) uid and gid Is there anything I can do to get this working? T

  • Files mounted over NFSv4 are owned by 4294967294, UIDs and GIDs match 2010-01-01

    I have two identical linux machines (identical images launched in amazon EC2) and I am trying to mount an exported directory over NFSv4. Here is what the mounted directory looks like on the client machine: [email protected]:~# ls -l /websites/ drwxr-xr-x 6

  • Mac OSX: restart required after removing auto mount 2012-09-01

    By default /home directory is protected in mac osx and you need to remove the auto mount by editing the file /etc/auto_master and replace the following line /home auto_home -nobrowse,hidefromfinder with this #/home auto_home -nobrowse,hidefromfinder

  • useradd user with group with same uid and gid 2016-02-10

    I want to add a user named "nexus" with uid as 1234567 (example number) and gid 1234567. I'm running the following command: sudo useradd -r -U -u 1234567 -g 1234567 -m -c "nexus role account" -d /sonatype-work -s /bin/false nexus But I

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 1.317 (s). 13 q(s)