diff --git a/bin/account-manager-web.pl.in b/bin/account-manager-web.pl.in
index ac2f0f5de31ab112f36983a7077004d0ee7aa836..bd996d7c64e6d4eebaff166ba424e5496b9066a0 100755
--- a/bin/account-manager-web.pl.in
+++ b/bin/account-manager-web.pl.in
@@ -12,11 +12,6 @@ my $configuration = IdPAccountManager::Configuration->new(
     file => '@sysconfdir@/IdPAccountManager.conf'
 );
 
-## Gives writes for the group
-umask 0002;
-
-chdir $configuration->{root_manager_dir};
-
 my $request = new IdPAccountManager::WebRequest(
     configuration => $configuration
 );