Sunday, 3 March 2013

Add user in sudoers file

User name not found in Sudoers file.

Try this, it will definitely help you

  1. Start terminal
  2. apply following commands
  3.      $ su -
         $ chmod u+rw /etc/sudoers
  4. open
        sudoers file with  $ vi /etc/sudoers
                          or       $ gedit /etc/sudoers
  5. Note : recommended is vi .
  6. Add entry with user name i.e <user name> ALL = (ALL)ALL
  7.     or what permission you want to give
  8. chmod u-w /etc/sudoers

That's it .
Continue reading Add user in sudoers file

Monday, 9 January 2012

"Sequence Point" in C

                           A sequence point is a point at which the dust has settled and all side effects that have seen so far are guaranteed to be complete.
      In C following are described as sequence point :
  •           at the end of full expression.(not a sub expression)
  •           at the ||,&&,?: and comma operator
  •           a function call ( after evaluation of all the arguments and just before the actual call)
Continue reading "Sequence Point" in C