On Sat, Nov 10, 2001 at 11:33:38PM +0500, Shomal Bafna wrote: > I have a ext2 partition assigned as Mount point > /Backup. When i use a user account to download > some stuff i am not able to save in the Backup > as i get a permission denied error .. How can i > give permission to a user to be able use this ? > ---end quoted text---
Normally, backup strategies is a superuser funct- ion. In case of a single user system, it is of no concern. However, on a multiuser system it is not recommended. Methods are: a) As root #chmod 777 /partition-name b) Then for each user, make directories with grp as appropriate, and make them accessable only by that user: Example: o #mkdir /backup/root-bak o #chown root.root /backup/root-bak o #chmod 700 /backup/root-bak o #mkdir /backup/user1-bak o #chown user1.users /backup/user1-bak o #chmod 700 /backup/user1-bak c) If you adopt above strategy, at least, data of individual users remain private. If full "rwx" access is given to all users to /backup, you can request your users to make their own dirs under /backup and protect them 700 (or privi- leges deemed appropriate). d) Another safe strategy would be to permit group access to that partition, by specifying gid in /etc/fstab while mounting. You need to edit /etc/group and add a special group "backup" or something. Then add all users who you want to give access to this group. Those not belonging to that "backup" group will be denied access. HTH Bish -- : ####[ Linux One Stanza Tip (LOST) ]########################### Sub : links console browser LOST #035 Links browser, supports frames and tables ... For a reasonably good Console based browser visit here: http://artax.karlin.mff.cuni.cz/~mikulas/links/ ####<[EMAIL PROTECTED]>####################################### : _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
