|
C# is owned by Microsoft and Java is owned by Sun/Oracle. What dangers does that really expose to the users of these languages? Has anyone felt their code was "owned"? Do projects like Mono help keep the "owners" honest?
Please do not make this a holy...
Started by User1 on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
If you find a bug in it that you on it's own? Java is in the process of transition....
But Java is a trademark
Java is not "Owned", it is open source.
Formally it is owned by a committee.
It is an ISO standard.
No such danger for C# language.
|
|
Is there a way, on Linux, to cause all new files created in a directory to be owned by the directory's group instead of the creating user's group?
Started by singpolyma on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
If you 'chmod g+s directory' then all files created in that directory will be owned by that group.
|
|
I need to change the permissions of a directory to be owned by the Everyone user with all access rights on this directory. I'm a bit new to the Win32 API, so I'm somewhat lost in the SetSecurity* functions.
Started by Jason on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Are you sure this is a good idea? I spend a lot of time removing... .
Ok, I figured it out:
SetSecurityInfo(hDir, SE_FILE_OBJECT, DACL_SECURITY_INFORMATION, NULL, NULL, NULL, NULL);
This will give all permissions to all users for the given directory handle .
|
Ask your Facebook Friends
|
Given a file path how do i check that this file is owned by current user? Currently i managed to get:
[[[NSFileManager defaultManager] attributesOfItemAtPath:filePath error:outError] fileOwnerAccountID];
Which return NSNumber*. But i can't seem to google...
Started by Inso Reiges on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Presumably the reason there....
Hope this helps
You can get the current user's id with getuid() .
I'm not near my mac to test.
Instead of
fileOwnerAccountID
try
fileOwnerAccountName
I'm new here, and if there's a reason this won't work maybe I've missed it .
|
|
I'm from a programming background and been thrown into managing a Linux server at work because of an emergency with our reg sys admin. Is it reliable or safe to have our PHP files owned by root yet Apache obviously running on Fedora 8 as apache?
Apache...
Started by miamisoftware on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
I'm not sure off the top of my head whether a root-owned PHP script with setuid permissions....
But then there's the question of setuid bits.
The files are owned by the gid that Apache runs under, then you're in somewhat better shape.
|
|
Is there a Linux library that will enable me to tell what IP sockets are owned by what processes? I guess I'm looking for the programmatic equivalent of lsof -i . Ultimately, I want to correlate packets seen through libpcap to processes.
UPDATE: A couple...
Started by Rob H on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
The 'files' you probably want to look at are found in /proc/<pid>/net (namely tcp, udp, unix)
Here's some examples on using the proc ... .
I'd go to the source:
http://ubuntuforums.org/showthread.php?t=1346778
You can read them from proc filesystem .
|
|
I'd like to mount an ext3 filesystem via /etc/fstab so that the files in the mount are owned by a particular user. Is this possible ? I've looked at man mount but couldn't find an option to do this. ( Similar to setting uid and gid for a vfat mount )....
Started by nagul on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
There's a patch around for mounting ext2/3 with a fixed uid for all... .
Run chown -R.
No, this isn't possible to do in fstab or mount with ext3 because the ownership info is stored within the file system, as opposed to being a property of the file system .
|
|
I need to grant select permission for all tables owned by a specific user to another user. Can I do this with a single command along the lines of:
Grant Select on OwningUser.* to ReceivingUser
Or do I have to generate the sql for each table with something...
Started by Mark Roddy on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Well, it's not a single statement, but it's about as close as you can get with oracle:
BEGIN FOR R IN (SELECT owner, table_name FROM all_tables WHERE owner='TheOwner') LOOP EXECUTE IMMEDIATE 'grant select on '||R.owner... .
Only via the second option AFAIK.
|
|
Hi!
I need to run a windows command line tool from a php script on my Debian server. For that, I'm trying Wine. Invoking wine and the tool via terminal works fine: "$ wine tool.exe"
But when running the same from my php script...
exec("wine tool.exe")...
Started by Cambiata on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Create a directory which is owned by www-data, set the HOME.
Home directory for running Wine.
|
|
We have a 3rd-party app that wants to call a stored proc using SQL 2005-style "schema" syntax:
Customer.InsertNewOrder
This db is still on SQL 2000, though, so we're trying to make it "look" like a SQL 2005 schema, and still work right (with minimum necessary...
Started by BradC on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
SQL Server relies chain is broken, SQL Server checks permissions on each branch of the chain owned by a different user.
If different users own the target objects, the ownership chain is broken.
To be unbroken.
|