User Name
Password

Go Back   Planetarion Forums > Non Planetarion Discussions > Programming and Discussion > Hardware and Tech Support

Reply
Thread Tools Display Modes
Unread 26 Nov 2002, 12:56   #1
meglamaniac
Born Sinful
 
meglamaniac's Avatar
 
Join Date: Nov 2000
Location: Loughborough, UK
Posts: 4,059
meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.
[linux] ls output leads to query

No doubt I'm missing something obvious here, but look at this listing:
Code:
-rwxr-xr-x    1 matt     matt           35 Nov 26 11:58 data*
-rwxr-xr-x    1 matt     matt        16062 Nov 26 11:59 q1*
-rwxr-xr-x    1 matt     matt         1192 Nov 26 11:59 q1.cpp*
-rwxr-xr-x    1 matt     matt         1192 Nov 26 11:58 q1.cpp~*
[matt@hf-hall-stud-233-233-208 coursework]$
Now look at this one

Code:
-rw-r--r--    1 matt     matt           35 Nov 26 12:06 data
-rwxr-xr-x    1 matt     matt        16062 Nov 26 11:59 q1*
-rwxr-xr-x    1 matt     matt         1192 Nov 26 11:59 q1.cpp*
-rwxr-xr-x    1 matt     matt         1192 Nov 26 11:58 q1.cpp~*
[matt@hf-hall-stud-233-233-208 coursework]$
You'll see 'data' is no longer executable - because it was deleted and rewritten by the program.
Why does everything copied off a FAT format floppy (like the above) get set executable? I can see the basic idea (ie. theres no way of telling if it's executable or not, so it assumes everything is for ease of use) but isn't that a bit of a security flaw having EVERYTHING executable by EVERYONE as default?
Ta.

__________________
Worth dying for. Worth killing for. Worth going to hell for. Amen.
meglamaniac is offline   Reply With Quote
Unread 26 Nov 2002, 14:23   #2
Slidey
Registered User
 
Join Date: Mar 2001
Posts: 205
Slidey is an unknown quantity at this point
if i remember rightly, new files are created according to your umask, which by default is 022..

try typing umask -p or umask -S

Code:
root@fido:~# umask 0022
root@fido:~# touch test
root@fido:~# ll test
-rw-r--r--    1 root     root            0 Nov 26 13:32 test
root@fido:~# umask 666
root@fido:~# rm -f test
root@fido:~# touch test
root@fido:~# ll test
----------    1 root     root            0 Nov 26 13:37 test
root@fido:~#
__________________
#linux - home of idiots

#impulsed - home of genius..?
Slidey is offline   Reply With Quote
Unread 26 Nov 2002, 15:23   #3
meglamaniac
Born Sinful
 
meglamaniac's Avatar
 
Join Date: Nov 2000
Location: Loughborough, UK
Posts: 4,059
meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.meglamaniac has ascended to a higher existance and no longer needs rep points to prove the size of his e-penis.
spank you

__________________
Worth dying for. Worth killing for. Worth going to hell for. Amen.
meglamaniac is offline   Reply With Quote
Unread 26 Nov 2002, 20:24   #4
queball
Ball
 
queball's Avatar
 
Join Date: Oct 2001
Posts: 4,410
queball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so littlequeball contributes so much and asks for so little
And the FAT mount has a umask as well, you can set it with a mount option but 022 is good.
Having anything exectuable by anyone isn't normally a security risk, by the way.
queball is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Forum Jump


All times are GMT +1. The time now is 05:28.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2018