Changeset 5169


Ignore:
Timestamp:
Jun 14, 2017, 4:57:08 PM (19 months ago)
Author:
hectorgh
Message:

fixing mount perms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lmd-client/trunk/fuentes/install/usr/share/ldm/rc.d.diversions/X01-localapps.lliurex

    r5086 r5169  
    264264            mkdir -p /run/$LDM_USERNAME/groups_share
    265265            mkdir -p /run/$LDM_USERNAME/teachers_share
    266 
    267        
    268        
     266           
    269267            # Teachers need access to student home mount point  # 10003 -> teachers gid
    270268            if [ ${GRP_USER} = 'students' ]; then
    271                 mount //$LDM_SERVER/home /run/$LDM_USERNAME/home -o username=$LDM_USERNAME,password=$LDM_PASSWORD,gid="10003"
    272            else
    273                 mount //$LDM_SERVER/home /run/$LDM_USERNAME/home -o username=$LDM_USERNAME,password=$LDM_PASSWORD
     269                mount //$LDM_SERVER/home /run/$LDM_USERNAME/home -o username=$LDM_USERNAME,password=$LDM_PASSWORD,forceuid,forcegid,uid="$USER_UID",gid="10003"
     270            else
     271                mount //$LDM_SERVER/home /run/$LDM_USERNAME/home -o username=$LDM_USERNAME,password=$LDM_PASSWORD,forceuid,forcegid,uid="$USER_UID",gid="$USER_GID"
    274272            fi
    275273           
    276             mount //$LDM_SERVER/share /run/$LDM_USERNAME/share -o username=$LDM_USERNAME,password=$LDM_PASSWORD
    277             mount //$LDM_SERVER/groups_share /run/$LDM_USERNAME/groups_share -o username=$LDM_USERNAME,password=$LDM_PASSWORD
    278             mount //$LDM_SERVER/teachers_share /run/$LDM_USERNAME/teachers_share -o username=$LDM_USERNAME,password=$LDM_PASSWORD
     274            mount //$LDM_SERVER/share /run/$LDM_USERNAME/share -o username=$LDM_USERNAME,password=$LDM_PASSWORD,forceuid,forcegid,uid="$USER_UID",gid="$USER_GID"
     275            mount //$LDM_SERVER/groups_share /run/$LDM_USERNAME/groups_share -o username=$LDM_USERNAME,password=$LDM_PASSWORD,forceuid,forcegid,uid="$USER_UID",gid="$USER_GID"
     276            mount //$LDM_SERVER/teachers_share /run/$LDM_USERNAME/teachers_share -o username=$LDM_USERNAME,password=$LDM_PASSWORD,forceuid,forcegid,uid="$USER_UID",gid="$USER_GID"
     277
    279278
    280279    fi
Note: See TracChangeset for help on using the changeset viewer.