VirtualBox

Changeset 13342 in vbox


Ignore:
Timestamp:
Oct 16, 2008 2:25:31 PM (16 years ago)
Author:
vboxsync
Message:

move the /dev/net/tun permission setter upwards as the user might create a valid configuration later

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/vboxnet.sh.in

    r9789 r13342  
    136136{
    137137    begin_msg "Starting VirtualBox host networking"
     138    # Set /dev/net/tun to belong to the group vboxusers if it exists and does
     139    # yet belong to a group.
     140    if ls -g "$TAPDEV" 2>/dev/null | grep root > /dev/null; then
     141      chgrp vboxusers "$TAPDEV"
     142      chmod 0660 "$TAPDEV"
     143    fi
    138144    # If the service is already running, return successfully.
    139145    if [ -f "$VARFILE" ]; then
     
    233239      fi
    234240    done < "$CONFIG"
    235     # Set /dev/net/tun to belong to the group vboxusers if it exists and does
    236     # yet belong to a group.
    237     if ls -g "$TAPDEV" 2>/dev/null | grep root > /dev/null; then
    238       chgrp vboxusers "$TAPDEV"
    239       chmod 0660 "$TAPDEV"
    240     fi
    241241    return 0
    242242}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette