Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm in the process of setting up Samba shares for a SOHO network and would like to know whether or not it is safe/advisable to remove a Samba user's Bash Shell startup files (i.e. .bash_logout, .bash_rc, .profile).

Provided that the respective users are not allowed to logon to the system that Samba runs on (their login shell is set to /bin/false), is there any drawback I should be aware off when removing those files?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

It's safe to remove them. They aren't even strictly necessary if someone logs in via a shell, as they are user-specific configs extending or overriding global settings set in e.g. /etc/profile.

share|improve this answer
    
Alright, exactely what I was hoping to hear. –  aefxx Apr 5 '13 at 12:27
    
Not to mention that bash is never used by a user with /bin/false shell. –  Lukas Apr 5 '13 at 16:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.