Sunday, January 6, 2013

HOw to set linux ftp server when user creates file to set file premission?

Q. I installed a server vsftpd on Ubuntu 10 but when I login on ftp and upload some files it sets to premission 600. How can I change that?

A. The 'local_umask' option in vsftp.conf sets this. Don't forget the leading zero.

How can I set folder permissions in linux in such a way that users can create files/folders, but not delete?
Q. I have made a folder on my linux server, which needs to function as some sort of "deposit box".

Users should be able to create files & folders, but not delete them after they have been created.
Is that possible from a linux command line?

A. You'd probably have to mess with umask and chmod.
umask [-p] [-S] [mode]
The user file-creation mask is set to mode. If mode begins with a digit, it is interpreted as an octal number; otherwise it is interpreted as a symbolic mode mask similar to that accepted by chmod(1). If mode is omitted, the current value of the mask is printed. The -S option causes the mask to be printed in symbolic form; the default output is an octal number. If the -p option is supplied, and mode is omitted, the output is in a form that may be reused as input. The return status is 0 if the mode was successfully changed or if no mode argument was supplied, and false otherwise.

When i create new user account in BOSS linux it gets disabled automatically?
Q. When i create new user account in BOSS linux it gets disabled automatically, when i enable in advance options no use it gets disabled again.

A. I use linuxmint. Maybe you should give that a try. www.linuxmint.com




Powered by Yahoo! Answers

No comments:

Post a Comment