[Environment]
After configuring a server with:
FC5
Fedora Directory Server 1.0.2
and connecting a newly installed client also running FC5,
upon configuring the whole thing, including user authentication at the client side via LDAP,
[Problem]
everytime a user logs in, a warning message "your $HOME/.dmrc is being ignored...incorrect permission... 644..." etc shows up, although afterwards everything seems to work normally.
[Question]
How to prevent this problem from happening, in order not to disturb the otherwise relaxed and happy system users?
[Further technical data]
The login takes place at the client end using as username t10a (previously created at the FDS console on the server as POSIX user).
At the client, the file .bashprofile contains:
# .bash_profile
bash /etc/script/shell/apagar_t10a
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAM
The file apagar_t10a contains:
#!/bin/sh
rm -rf /home/t10a
cp -r /etc/script/modelo/t10a /home
chmod -R o+rwx /home/t10
That is, after logging in, the user home directory from a previous session is deleted, and a model configuration is restored (basically, an empty home directory with all typical (hidden) files, including the above mentioned .bashprofile.
At the client, there is a local group called t10a, as well, but no local user under that name.
Now: after login in, the scripts run, and I could check that /home/t10a has root as user as well as group, and .dmrc does not exhibit 644 permissions. So I changed the scripts in order to ensure that the home folder t10a comes as owned by t10a (as both user and group), and also changed the script so that .dmrc after login shows the recommended 644 permissions. I futher tried a lot of variations on this theme....
But the warning message still pops-up!
Can you experts help? Hope so.
Sincere thanks.