1833784 Members
3710 Online
110063 Solutions
New Discussion

mv command.

 
ryan--O.o--
Advisor

mv command.

Is it possible to remove the authority of a normal unix user to use the "mv" command?
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: mv command.

You could, of course, change the mode of /usr/bin/mv from 555 to 550 but you are almost certainly going to break many scripts. The same would be true if you created a wrapper script for mv. The problem is not with the mv command itself but with the user. Essentially, if the user doesn't have write permission in the source and destination directory then he can't mv a file. That is where you need to concentrate your efforts. Normally, mv is a perfectly valid command; it appears that your real problem is that your file and directory modes (permissions) are just too lax. You should also check umask. Umask 000 is not your friend.
If it ain't broke, I can fix that.
ryan--O.o--
Advisor

Re: mv command.

Gee. thanks. Your advise is much appreciated.