Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Dir set different owner ?

Reply
Thread Tools

Dir set different owner ?

 
 
Svend-Erik Madsen
Guest
Posts: n/a
 
      01-22-2004
Hi
While using:
<SNIP>
Dir::mkdir("/home/#{$user}/#{Netdir}")
</SNIP>
as root user, it seems that i cannot set owner on Dir, to $user afterwards ?
I use the root user because im making a smb mount into Netdir:
<SNIP>
`/bin/mount -t smbfs -o\ username=#{$user},password=#{$passwd} //#{$host}/\
#{$user} /home/#{$user}/#{Netdir}`
Tk.messageBox('message'=>"/home/#{$user}/\
#{Netdir} created and mountet !")
</SNIP>

/Svend-Erik
 
Reply With Quote
 
 
 
 
Svend-Erik Madsen
Guest
Posts: n/a
 
      01-22-2004
Hi
> `/bin/mount -t smbfs -o\ username=#{$user},password=#{$passwd}
> //#{$host}/#{$user} /home/#{$user}/#{Netdir}`

most be replased with:
`/bin/mount -t smbfs -o uid=#{$user},gid=#{$user},username=#{$user},\
password=#{$passwd} //#{$host}/#{$user} /home/#{$user}/#{Netdir}`


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dir() vs print(dir()) in the embedded mode Nick Gnedin Python 2 03-30-2013 05:52 AM
External prog get file from main dir, want file in diff dir Kga Agk Ruby 2 06-29-2009 02:09 PM
Behaviour of Dir.glob("**/b") and Dir.glob("*/b") for symlinks Matthew Denner Ruby 1 08-04-2006 03:42 PM
Sub Dir, Virtual dir, what do I use? =?Utf-8?B?UnVkeQ==?= ASP .Net 0 06-12-2005 08:25 PM
change dir owner Frank McCown Perl 7 12-08-2003 01:33 PM



Advertisments