w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Using File.chown() in ruby as root to be owned by user

Only a process with superuser privileges may change the owner of a file. [RubyDocs]

Try running ruby with sudo.

EDIT

Second argument should be group ID. Not user ID.

EDIT 2

Turned out to be the globals. My heart has never been happier. Please see comments.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.