Skip to content

[BUG]Β #3392

@dvdvideo1234

Description

@dvdvideo1234

Issues raised here are ONLY for:

  • LinuxGSM bugs.
  • Feature suggestions.
  • Code contributions.

For general support visit the LinuxGSM-Support.

Please use the template below, deleting the above text

User Story

I am an application developer and remote server administrator. Today I decided to make a LinuxGSM powered Garry's mod so I can test my addon server and client configuration on separate machines. I am using a mounted NTFS/exFAT/HPFS drive with all the permissions available and provided to anyone that attempts to write in the disk remotely ( as long as he has VPN encryption, SSH tunneling and correct user and password trough the firewall ) rwx permissions so the user can do as he pleases. However the mounted folder is owned by the root user and not the user that I run the commands as, so na matter if all the permissions are granted, I cannot proceed of installing the LinuxGSM on the mounted drive via the general command. I can only install the server on my SSD user home folder, which us unacceptable and there is really no point in installing large server on the SSD rather than a specified fast 1TB drive dedicated to that.

Basic info

  • Distro: Ubuntu 20.04.2 LTS
  • Game: Garry's Mod
  • Command: Monitor
  • LinuxGSM version: Lastest

Further Information

I have all the permissions on the mounted drive, but I can't install LinuxGSM still because all the downloaded files are automatically owned by the root user when installation check is preformed and the process is terminated

deyan@C2750D4I:~/Documents/Data1/LinuxGSM$ ./gmodserver install
copying _default.cfg...OK
[ FAIL ] Installing gmodserver: Ownership issues found
Information! The current user (deyan) does not have ownership of the following files:
tee: /home/deyan/Documents/Data1/LinuxGSM/log/script/gmodserver-script.log: No such file or directory
User  Group  File
root  root   /home/deyan/Documents/Data1/LinuxGSM/gmodserver
root  root   /home/deyan/Documents/Data1/LinuxGSM/lgsm/functions
root  root   /home/deyan/Documents/Data1/LinuxGSM/lgsm/functions/check.sh
root  root   /home/deyan/Documents/Data1/LinuxGSM/lgsm/functions/check_ip.sh
root  root   /home/deyan/Documents/Data1/LinuxGSM/lgsm/functions/check_permissions.sh
root  root   /home/deyan/Documents/Data1/LinuxGSM/lgsm/functions/check_tmuxception.sh
root  root   /home/deyan/Documents/Data1/LinuxGSM/lgsm/functions/check_version.sh
root  root   /home/deyan/Documents/Data1/LinuxGSM/lgsm/functions/command_install.sh
root  root   /home/deyan/Documents/Data1/LinuxGSM/lgsm/functions/core_dl.sh
root  root   /home/deyan/Documents/Data1/LinuxGSM/lgsm/functions/core_functions.sh
root  root   /home/deyan/Documents/Data1/LinuxGSM/lgsm/functions/core_getopt.sh
root  root   /home/deyan/Documents/Data1/LinuxGSM/lgsm/functions/core_legacy.sh
root  root   /home/deyan/Documents/Data1/LinuxGSM/lgsm/functions/core_messages.sh
root  root   /home/deyan/Documents/Data1/LinuxGSM/lgsm/functions/core_trap.sh
root  root   /home/deyan/Documents/Data1/LinuxGSM/lgsm/functions/info_config.sh
root  root   /home/deyan/Documents/Data1/LinuxGSM/lgsm/functions/info_parms.sh

To Reproduce

Steps to reproduce the behaviour:

  1. Use Ubuntu 20 and mount standard SATAIII drive formated as NTFS or exFAT
  2. Go to the mounted drive NTFS - Mounted at /home/deyan/Documents/Data1
  3. Make LimuxGSM directory and enter it
  4. Execute Intallation procedure

Expected behaviour

Based on my opinion LinuxGSM should not case who owns the created downloaded files, but just care about the drive permissions.

So far I tried NTFS and exFAT file systems even with manual calls of the mounting program similar to:
sudo mount -t exfat -o rw,users,uid=1000,gid=1000,dmask=007,fmask=007 /dev/sdb5 /home/deyan/Documents/Servers

Sometimes the drive is not mounted at all, the other times it is mounted, but the files are still owned by the root user and cannot be changed via sudo chown -R deyan:deyan /home/deyan/Documents/Servers to all files and sub-folders and the command apperas to have no effect.

Tried with a bunch of different /etc/fstab options similar to this and its relatives: auto,exec,user,rw,suid,nodev,nofail,x-gvfs-show and I am very positively sure that anyone has access to this folder that is even shared in SMB. I am mounting the drives during system startup give them all permissions for RWX and sare them over the network. The sever must be accessable from Windows PCs and the drive has to be redable in Windows when is is physically ouside of the case, so I cannot use Journaling FS.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions