Skip to main content
added 7 characters in body
Source Link
MERose
  • 537
  • 1
  • 10
  • 24

A little script of mine on a mounted windows partition refuses to be executed directly (shebang is #!/bin/bash), but interestingly calling it with bash/sh works. The script is simply a collection of grep and sed commands.

The drive is mounted with full rights:

defaults,windows_names,rw,auto,user

Hence, for the the file got

-rwxrwxrwx 1 root root

for the file.

What's going on there?

A little script of mine on a mounted windows partition refuses to be executed directly (shebang is #!/bin/bash), but interestingly calling it with sh works. The script is simply a collection of grep and sed commands.

The drive is mounted with full rights:

defaults,windows_names,rw,auto,user

Hence, for the the file got

-rwxrwxrwx 1 root root

for the file.

What's going on there?

A little script of mine on a mounted windows partition refuses to be executed directly (shebang is #!/bin/bash), but interestingly calling it with bash/sh works. The script is simply a collection of grep and sed commands.

The drive is mounted with full rights:

defaults,windows_names,rw,auto,user

Hence, for the the file got

-rwxrwxrwx 1 root root

for the file.

What's going on there?

Tweeted twitter.com/#!/StackUnix/status/546287285680238592
Add command to mount drive
Source Link
MERose
  • 537
  • 1
  • 10
  • 24

A little script of mine on a mounted windows partition refuses to be executed directly (shebang is #!/bin/bash), but interestingly calling it with sh works. The script is simply a collection of grep and sed commands.

The drive is mounted with full rights.:

defaults,windows_names,rw,auto,user

Hence, Ifor the the file got

-rwxrwxrwx 1 root root

for the file.

What's going on there?

A little script of mine on a mounted windows partition refuses to be executed directly (shebang is #!/bin/bash), but interestingly calling it with sh works. The script is simply a collection of grep and sed commands.

The drive is mounted with full rights. Hence, I got

-rwxrwxrwx 1 root root

for the file.

What's going on there?

A little script of mine on a mounted windows partition refuses to be executed directly (shebang is #!/bin/bash), but interestingly calling it with sh works. The script is simply a collection of grep and sed commands.

The drive is mounted with full rights:

defaults,windows_names,rw,auto,user

Hence, for the the file got

-rwxrwxrwx 1 root root

for the file.

What's going on there?

Source Link
MERose
  • 537
  • 1
  • 10
  • 24

bash permission denied but sh works

A little script of mine on a mounted windows partition refuses to be executed directly (shebang is #!/bin/bash), but interestingly calling it with sh works. The script is simply a collection of grep and sed commands.

The drive is mounted with full rights. Hence, I got

-rwxrwxrwx 1 root root

for the file.

What's going on there?