ruby on rails - Debian adding user -


i want add new user debian server.

the user should have access rights ruby / rails / rvm / gem / git / , folder /var/www/

how add user correctly?

the user should able start webrick server , install gems.

a standard user should able single-user installation of rvm.

just follow instructions on https://rvm.io

in order check if user has rights on /var/www :

check user's groups :

groups #{username} 

check permissions on /var/www :

ls -al /var | grep www 

you should :

drwxr-xr-x 15 www-data www-data 4096 #{timestamp} www 

let's review character character :

  • d directory (- regular file, l links, etc...)
  • next 3 characters permissions owner of file (rwx here, meaning full access r reading, w writing, x executing)
  • next 3 define permisssions group file belongs (r-x means writing disabled)
  • next 3 define permissions (other) user on machine.
  • the 15 link count (how many links item). varies between platforms.
  • first name (www-data) next owner of file, rwx applies, second www-data name of group /var/www belongs to.
  • finally, size , name of file.

to solve problem of accessing /var/www user, have have @ least r-- (and r-x) on directory. can provided in 2 ways : add user group /var/www belongs (use usermod -g #{groupname} #{username}) , make sure group has rights (use chmod that). second way make user owner of /var/www (chown ally there).

can post results of these commands in question?


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -