protonscr

Team Fortress hl2.sh Permission denied

steamclosed
ValveSoftware/steam-for-linux#285 · opened 2012-12-22 by jhwedemeyer · updated 2012-12-23 · 7 comments · github
Jjhwedemeyer 2012-12-22 github

When I want to start TF it does not work.
I have created SteamApps as an Symbolic Link to another HDD. Not sure if thats important. Manually changing the Permissions didn't worked also with sudo.

Console:

Game update: AppID 440 "Team Fortress 2", ProcID 3941, IP 0.0.0.0:0
saving roaming config store to 'sharedconfig.vdf'
roaming config store 2 saved successfully
/bin/sh: 1: /home/twain/.local/share/Steam/SteamApps/0twain0/Team Fortress 2/hl2.sh: Permission denied
Game removed: AppID 440 "Team Fortress 2", ProcID 3941 

Hardware Informations:

Processor Information:
    Vendor:  AuthenticAMD
    Speed: 3013 Mhz
    2 logical processors
    2 physical processors
    HyperThreading:  Unsupported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Unsupported
    SSE41:  Unsupported
    SSE42:  Unsupported
    
Network Information:
    Network Speed:  
    
Operating System Version:
    Ubuntu 12.04.1 LTS (32 bit)
    Kernel Name:  Linux
    Kernel Version:  3.2.0-35-generic
    X Server vendor:  The X.Org Foundation
    X Server release:  11103000
    
Video Card:
    Driver:  NVIDIA Corporation GeForce 8600 GTS/PCIe/SSE2/3DNOW!

    Driver Version:  3.3.0 NVIDIA 310.14
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 59 Hz
    VendorID:  0x10de
    DeviceID:  0x400
    Number of Monitors:  1
    Number of Logical Video Cards:  1
    Primary Display Resolution:  1440 x 900
    Desktop Resolution: 1440 x 900
    Primary Display Size: 16,06" x 10,04"  (18,94" diag)
                                            40,8cm x 25,5cm  (48,1cm diag)
    Primary Bus: PCI Express 16x
    Primary VRAM: 512 MB
    Supported MSAA Modes:  2x 4x 8x 16x 
    
Sound card:
    Audio device: Analog Devices AD1988B
    
Memory:
    RAM:  2012 Mb
    
Miscellaneous:
    UI Language:  English
    LANG:  de_DE.UTF-8
    Microphone:  Not set
    Total Hard Disk Space Available:  74722 Mb
    Largest Free Hard Disk Block:  12011 Mb
    
Installed software:
    
Recent Failure Reports:
    
Gguelfey 2012-12-22 github
  1. Did you correct the permissions of the actual file on the other filesystem and not the symbolic link?
  2. Is the other filesystem mounted with noexec? (I'm not sure whether this matters for shell scripts.)
Mmike50 2012-12-23 github

Check your mountoption with "mount".

Jjhwedemeyer 2012-12-23 github

I tried to correct the permissions of the actual file but it didn't worked. Also with sudo.

drwx------ 1 twain twain 8192 Dez 22 15:25 bin
drwx------ 1 twain twain    0 Dez 21 22:42 hl2
-rw------- 1 twain twain 6891 Dez 22 16:54 hl2_linux
-rw------- 1 twain twain 2171 Dez 22 16:54 hl2.sh
-rw------- 1 twain twain   17 Dez 22 16:53 libcurl.so
drwx------ 1 twain twain 4096 Dez 21 22:54 tf

And my HDD is not noexec:

/dev/sdb1 on /media/My_HDD type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
Aahstro 2012-12-23 github

I can see that your HDD is NTFS(fuseblk). I had a ton of problems with reading/writing and changing permissions on my NTFS drives but then I found out about ntfsprogs/ntfs-3g. Try installing them both with: "# apt-get install ntfsprogs ntfs-3g", remount your drive and try changing the permissions of the files with "# chmod a+x /home/twain/.local/share/Steam/SteamApps/0twain0/Team Fortress 2/*" (This will make it so that all users will be able to execute the files. If you just want your user to do so, replace the "a" after "chmod" with "u".)

I hope this helped.

P.S. This doesn't appear to be a Steam bug, so if this solves it, it would probably be good if you removed the bug report somehow, as to not crowd the GitHub page.

Jjhwedemeyer 2012-12-23 github

@mike50 thanks that solved the problem.

Gguelfey 2012-12-23 github

I can see that your HDD is NTFS(fuseblk). [...] but then I found out about ntfsprogs/ntfs-3g.

The fuseblk indicates that he is already using ntfs-3g (a fuse driver).

Nothing extracted yet.