Re: [Wien] [not solved] regarding permission of Wien2k commands

2016-11-18 Thread Lyudmila Dobysheva

17.11.2016 21:35, Dr. K. C. Bhamu wrote:

I ran the chmod -R ugo+r,a+X *   command in the Wien2k dir and the
problem is still same:
  -rwxrwxr-x for all files.
On Thu, Nov 17, 2016 at 01:03:48PM +0530, Dr. K. C. Bhamu wrote:
 > I am getting the following permissions for all commands:
 > -rwxrwxr-x"


I have already wrote you that you have correct permissions!
-rwxrwxr-x:
- means it is a file (not directory)
rwx the owner (you) has rights to read, write, execute
rwx the group -"-
r-x others have rights to read and execute, not to write

So, again: what is your problem?

  Lyudmila Dobysheva
--
Phys.-Techn. Institute of Ural Br. of Russian Ac. of Sci.
426001 Izhevsk, ul.Kirova 132
RUSSIA
--
Tel.:7(3412) 432045(office), 722529(Fax)
E-mail: l...@ftiudm.ru, lyuk...@mail.ru (office)
lyuk...@gmail.com (home)
Skype:  lyuka17 (home), lyuka18 (office)
http://ftiudm.ru/content/view/25/103/lang,english/
--
___
Wien mailing list
Wien@zeus.theochem.tuwien.ac.at
http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
SEARCH the MAILING-LIST at:  
http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html


Re: [Wien] [not solved] regarding permission of Wien2k commands

2016-11-17 Thread Dr. K. C. Bhamu
Yes, this " -rwxrwxr-x" is for all executables in Wien2k.

Bhamu


On Thu, Nov 17, 2016 at 10:05 AM, Víctor Luaña Cabal <
vic...@fluor.quimica.uniovi.es> wrote:

> On Thu, Nov 17, 2016 at 11:05:21PM +0530, Dr. K. C. Bhamu wrote:
> > Thank you Dr. Víctor for suggestion.
> > But, it could not helped me.
> > I ran the chmod -R ugo+r,a+X *   command in the Wien2k dir and the
> problem
> > is still same:
> >
> >  -rwxrwxr-x for all files.
>
> Do you mean that every file has those permissions? Including executabables,
> inputs and uoutputs?
>
> In that case you have to use the chmod ro remove permissions or set
> exactly then to the ones you decide.
>
> The permissions at the time of creation of a new file are decided by
> the umask setting. For instance, if you are using bash your ~/.bashrc
> shoud containg something like
>
> umask 027
>
> that will give you (the owner) rw permission and the x will be provided
> after compilling and loading, or you can assing it with a chmod un the
> case you are creating a text script (bash, pytho, awk, ...) and decide
> to convert the script into a executable.
>
> The umask gives also everybody in your group r permissions, and others
> no permission whatever.
>
> Try reading a good user guide on the shell you prefer. It pays the time
> you dedicate at the beginning.
>
> Best regards,
>  V.
> ___
> Wien mailing list
> Wien@zeus.theochem.tuwien.ac.at
> http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
> SEARCH the MAILING-LIST at:  http://www.mail-archive.com/
> wien@zeus.theochem.tuwien.ac.at/index.html
>
___
Wien mailing list
Wien@zeus.theochem.tuwien.ac.at
http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
SEARCH the MAILING-LIST at:  
http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html


Re: [Wien] [not solved] regarding permission of Wien2k commands

2016-11-17 Thread Víctor Luaña Cabal
On Thu, Nov 17, 2016 at 11:05:21PM +0530, Dr. K. C. Bhamu wrote:
> Thank you Dr. Víctor for suggestion.
> But, it could not helped me.
> I ran the chmod -R ugo+r,a+X *   command in the Wien2k dir and the problem
> is still same:
> 
>  -rwxrwxr-x for all files.

Do you mean that every file has those permissions? Including executabables,
inputs and uoutputs?

In that case you have to use the chmod ro remove permissions or set
exactly then to the ones you decide.

The permissions at the time of creation of a new file are decided by
the umask setting. For instance, if you are using bash your ~/.bashrc
shoud containg something like

umask 027

that will give you (the owner) rw permission and the x will be provided
after compilling and loading, or you can assing it with a chmod un the
case you are creating a text script (bash, pytho, awk, ...) and decide
to convert the script into a executable.

The umask gives also everybody in your group r permissions, and others
no permission whatever.

Try reading a good user guide on the shell you prefer. It pays the time
you dedicate at the beginning.

Best regards,
 V.
___
Wien mailing list
Wien@zeus.theochem.tuwien.ac.at
http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
SEARCH the MAILING-LIST at:  
http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html


Re: [Wien] [not solved] regarding permission of Wien2k commands

2016-11-17 Thread Dr. K. C. Bhamu
Thank you Dr. Víctor for suggestion.
But, it could not helped me.
I ran the chmod -R ugo+r,a+X *   command in the Wien2k dir and the problem
is still same:

 -rwxrwxr-x for all files.

regards
Bhamu

On Thu, Nov 17, 2016 at 10:07 PM, Víctor Luaña Cabal <
vic...@fluor.quimica.uniovi.es> wrote:

> On Thu, Nov 17, 2016 at 01:03:48PM +0530, Dr. K. C. Bhamu wrote:
> > Dear Users,
> >
> > While playing with unix commands on my machine, I lost permission of all
> > Wien2k commands. Because of this I am not able to run any Wien2k
> commands.
> >
> > I am getting the following permissions for all commands:
> >
> > -rwxrwxr-x" .
> >
> > How to get rid off this problem?
>
> 1) Go to the directory where the wien2k codes are installed
>
> 2) If you are the owner of the files:
>
> chmod -R ugo+r,a+X *
>
> This gives reading permission to the owner (you) and sticky execution
> permissions to anybody. Your "-rwxrwxr-x" refects that this is tour desire,
> The -R option works recursibely on the directory you are in.
>
> 3) You can modify the owner:group propietary of the files with chown.
>Current linux installments tend to create ${USER} and ${GROUP}
> equivalent,
>but this is not the best decission if you have coworkers and students
>that could share your codes and scripts.
>You will need root permisions (or be a sudoer) to change owner:group
>of files.
>
> Good luck,
>   Víctor
>
> --
>  .  ."When are we ready to learn something? Motivation is the
> / `' \   most important step in education."
>/(o)(o)\  -- adapted from Adam Steltzner, 2016 (ElPaís)
>   /`. \/ .'\
>  /   '`'`   \
>  |  \'`'`/  | "You educate a man, you educate a person. You
>  |  |'`'`|  |  educate a woman, you educate a family."
>   \/`'`'`'\/  -- Bárbara Valencia, 2016 (NYTimes)
> ===(((==)))==+=
> ! Dr.Víctor Luaña, in silico chemist & prof. !
> ! Departamento de Química Física y Analítica !
> ! Universidad de Oviedo, 33006-Oviedo, Spain !
> ! e-mail:    !
> ! phone: +34-985-103491  fax: +34-985-103125 !
> ++
>  GroupPage: 
>  Articles:  
>  git-hub:   
> ___
> Wien mailing list
> Wien@zeus.theochem.tuwien.ac.at
> http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
> SEARCH the MAILING-LIST at:  http://www.mail-archive.com/
> wien@zeus.theochem.tuwien.ac.at/index.html
>
___
Wien mailing list
Wien@zeus.theochem.tuwien.ac.at
http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
SEARCH the MAILING-LIST at:  
http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html