Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: thymox on February 05, 2009, 03:41:52 PM
-
Hi all,
When I create a new user on SME7.4, a corresponding directory is created here:
/home/e-smith/files/samba/profiles/<username>
What file would I have to modify to have a symlink created here:
/home/e-smith/files/samba/profiles/<username>.v2
So, essentially, creating the <username> directory and them symlinking it adding a ".v2" at the end (for some level of Vista compatibility).
Cheers.
Grant.
-
Hi all,
When I create a new user on SME7.4, a corresponding directory is created here:
/home/e-smith/files/samba/profiles/<username>
What file would I have to modify to have a symlink created here:
/home/e-smith/files/samba/profiles/<username>.v2
So, essentially, creating the <username> directory and them symlinking it adding a ".v2" at the end (for some level of Vista compatibility).
Cheers.
Grant.
I suggest you do not wander of here but add your requirements to http://bugs.contribs.org/show_bug.cgi?id=3666 as this deals with the issue you are facing. It is not as simple as just creating that directory to get your Vista roaming profiles running. Symlinking the XP/NT profile is not an option as the Vista profile is (very) different to it's predecessors, mixing them makes them both not working most likely.
One way to get this resolved quicker would be to sponsor the development team with a Vista license. I once was offered one but unfortunately never received the offered copy. Since the development team does not have Vista licenses they do not have methods on testing this. So perhaps that might be an option.
-
I suggest you do not wander of here but add your requirements to http://bugs.contribs.org/show_bug.cgi?id=3666 as this deals with the issue you are facing. It is not as simple as just creating that directory to get your Vista roaming profiles running. Symlinking the XP/NT profile is not an option as the Vista profile is (very) different to it's predecessors, mixing them makes them both not working most likely.
Thank you, Cactus. Yes, I've now discovered a few failings of having a v1 and v2 profile symlinked together. If I can get the folder redirections working nicely on both XP and Vista clients, then I will be more than happy to have two separate profile directories - most users will be on a single machine anyway, so it's not vital that it works across the two systems. I will be adding comments to that bug. Thanks for the link. :)One way to get this resolved quicker would be to sponsor the development team with a Vista license. I once was offered one but unfortunately never received the offered copy. Since the development team does not have Vista licenses they do not have methods on testing this. So perhaps that might be an option.
Alas, I do not have any spare licenses. It would seem, however, that Windows 7 uses the same system as Vista for profiles, and that was (until recently) freely available for Beta download... so that might be a way to test things legitimately. :)
-
Alas, I do not have any spare licenses.
That is a pity, perhaps some one else :-)
It would seem, however, that Windows 7 uses the same system as Vista for profiles, and that was (until recently) freely available for Beta download... so that might be a way to test things legitimately. :)
That might be the case, but testing against a beta release has the drawback that the system is not fully stable and fundamental design changes might occur. Besides we need to test Vista and Beta as well when released as RC I guess.
-
One way to get this resolved quicker would be to sponsor the development team with a Vista license. I once was offered one but unfortunately never received the offered copy. Since the development team does not have Vista licenses they do not have methods on testing this. So perhaps that might be an option.
If this was meant serious, I have a spare Windows Vista Business OEM Licence, which I can provide. I don't have a media, but getting one should be no problem for you.
-
If this was meant serious, I have a spare Windows Vista Business OEM Licence, which I can provide. I don't have a media, but getting one should be no problem for you.
Yes this is serious.
-
Yes this is serious.
so, do you want the license? If yes, I 'll send it to snetram AT users.sourceforge.net. Is this ok?
-
I sent you the media and licence last year, Cactus. I'm disappointed that you didn't receive it.
Steve
-
I sent you the media and licence last year, Cactus. I'm disappointed that you didn't receive it.
Steve
I am as well, thanks for sending it out anyhow. I did not remember who it was back then to follow-up, I figured you might have decided to use it for a different purpose. Somewhere something must have gone wrong :-(
-
I have a spare Windows Vista Business OEM Licence, which I can provide.
so, do you want the license? If yes, I 'll send it to snetram AT users.sourceforge.net. Is this ok?
AFAIK a OEM license is of little use as you can not reinstall it unlimited, which is done during testing extensively (without reactivation), see also http://arstechnica.com/business/news/2006/11/8140.ars and http://www.tomshardware.co.uk/forum/page-235074_34_0.html .
Correct me if I am wrong.
-
No, even with OEM versions of Vista business, you can choose not to activate. You then have 60 days to use it, then you need to reinstall.
Steve
-
So long as you are using the same physical hardware, Microsoft will continue to issue activation keys.
That may not be needed, anyway; AFAIK you can install your copy inside VMWare, activate it, and then create a snapshot that can be used to clone new, pre-activated Vista VMs.
-
So long as you are using the same physical hardware, Microsoft will continue to issue activation keys.
That may not be needed, anyway; AFAIK you can install your copy inside VMWare, activate it, and then create a snapshot that can be used to clone new, pre-activated Vista VMs.
Perhaps you can, but IMHO you will be violating the EULA, also it makes it impossible for other developers to use it as well.
-
No, even with OEM versions of Vista business, you can choose not to activate. You then have 60 days to use it, then you need to reinstall.
I was not aware of that option, is this official MS policy?
-
The file that you need to modify is
/etc/e-smith/events/actions/user-create-profiledir
I modified it enough that it automatically create the user.V2 profile directory, but the needed permissions are not applied. Can anybody perhaps modify it further?
EDIT: I might have just seen the problem after posting. Will test it now.
EDIT2: My hunch did not work, can somebody else jump in?
Here it is:
#!/usr/bin/perl -w
#----------------------------------------------------------------------
# snip
#----------------------------------------------------------------------
package esmith;
use strict;
use Errno;
use esmith::util;
use esmith::AccountsDB;
my $adb = esmith::AccountsDB->open_ro();
my $event = $ARGV ;
my @users = ('admin', map { $_->key } $adb->users);
my @newusers = ($event eq "post-upgrade") ? @users : $ARGV[1] ;
foreach my $user ( @newusers )
{
die "$user is not a user account "
unless ( grep /^$user$/, @users );
my $dir = "/home/e-smith/files/samba/profiles/$user";
my $V2dir = "/home/e-smith/files/samba/profiles/$user.V2";
my $pre_existing = ( -d $dir );
my $V2pre_existing = ( -d $newdir );
$pre_existing || mkdir $dir, 700 || die "Couldn't create directory $dir ";
$V2pre_existing || mkdir $V2dir, 700 || die "Couldn't create directory $V2dir ";
chmod 0700, $dir; # Remove setgid bit
# chmod 0700, $V2dir; (doesn't work)
next if $pre_existing;
esmith::util::chownFile($user, $user, $dir) ||
die "Couldn't change ownership of $dir ";
chmod 0700, $V2dir;
next if $V2pre_existing;
esmith::util::chownFile($user, $user, $V2dir) ||
die "Couldn't change ownership of $V2dir ";
}
exit (0);
Craig
-
Craig, this would be worth raising a Feature Request bug to have the modifications tested and then included in the base packages.
-
Craig, this would be worth raising a Feature Request bug to have the modifications tested and then included in the base packages.
Well first I need to get it working (http://Smileys/default/grin.gif) (http://javascript:void(0);).
My sudden epiphany didn't amount to anything, either. But I have one more hunch.
-
I was not aware of that option, is this official MS policy?
OEM rules changed with vista. You could buy an OEM disk without purchasing hardware, but as soon as it is installed and activated on a piece of hardware, it is linked to that hardware and cannot legally be wiped and installed somewhere else. The trick, therefore, is to take advantage of the time MS allows us to use the product without activation - 60 days I believe.
Steve
-
Please do not post code changes (especially to the core) in the forums, instead open a bug for it or in this case attach it to the relevant bug: http://bugs.contribs.org/show_bug.cgi?id=3666
If you would have looked there, you would have seen that a suggestion is already attached to that bug in the forum of a patch.