Go Back   FlashFXP Forums > > > >

! Requests Need a script or some sort of cool .bat file ? Ask here!

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-15-2007, 07:10 AM   #1
LiSTiC
Junior Member
FlashFXP Registered User
 
Join Date: Mar 2007
Location: Denmark
Posts: 15
Default Changing group owner for dir

Heya

We got some users that don't want other users to see which group they belong to. So I was thinking, if it was possible to change the owner group to "NoGroup" or "Siteops".

I would think that would cause some problems with things like chmod, but what do I know :S

So is it possible to change the owner group to something else?

Thanks in advance
LiSTiC is offline   Reply With Quote
Old 08-15-2007, 11:36 AM   #2
Yil
Too much time...
FlashFXP Beta Tester
ioFTPD Administrator
 
Join Date: May 2005
Posts: 1,194
Default

Ok, there are a couple of issues here...

It is possible to just change the owner of group/files. Use "site chown :groupname file/dir" which will just change the group. With v6 you can use -R to recursively do that, and to specify wildcards. Check the ChangeLog for details. By default a user requires the V flag to use chown which is not something you want to give out normally to users.

Changing the default group for everyone so the are in the same group won't matter at all unless you are using groups for credits or something with a script. You can certainly be a member of more than one group, but I think most scripts assume the first group is "your group" just like the filesystem does.

Not sure what script add-ons you are using, but I'd just go with the simple default group change if people are really interested in hiding their group.
Yil is offline   Reply With Quote
Old 08-15-2007, 04:15 PM   #3
Zer0Racer
Senior Member
ioFTPD Scripter
 
Join Date: Oct 2002
Posts: 703
Default

Since users can be members of more than one group, just like Yil says, a simple solution could be to put all users in a generic main group called "users" or something like that (as first group). I think that will show up as group owner. Then add them to that secret group name so that they don't lose any special group permissions. Should work.

/ZR
Zer0Racer is offline   Reply With Quote
Old 08-15-2007, 05:51 PM   #4
dmixx
Junior Member
FlashFXP Registered User
ioFTPD Registered User
 
Join Date: Jul 2005
Posts: 2
Default

We did this before on some sites. What place are you asking about? in irc? Or in the FTP site?

If it is IRC, that is a very easy one. Just modifi the announce script where it says something like %bold%user%bold@%group and rename it to %bold%user%bold@PROTECTED or something

then it would say like JACK@PROTECTED....

It will look like everyone is in the same grp in IRC, but behind the scenes, everythign stays the same.


Hope this helps.
dmixx is offline   Reply With Quote
Old 08-15-2007, 11:08 PM   #5
LiSTiC
Junior Member
FlashFXP Registered User
 
Join Date: Mar 2007
Location: Denmark
Posts: 15
Default

Thanks guys

I'll give it a try the "first group" thing, havent thought about that

We already have modified the announce script to leave out the group, but it was still visible on the site.

Thanks again, I'll let you know how it turns out.
LiSTiC is offline   Reply With Quote
Old 08-16-2007, 04:44 AM   #6
LiSTiC
Junior Member
FlashFXP Registered User
 
Join Date: Mar 2007
Location: Denmark
Posts: 15
Default

It worked

Thanks guys!
LiSTiC is offline   Reply With Quote
Reply

Tags
change, chmod, group, owner, users

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:37 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)