DSL Tips and Tricks :: need user permittions



i need user dsl to have permittions over the /opt directory how?
Quote (mannetje @ May 01 2006,15:22)
i need user dsl to have permittions over the /opt directory how?

Permissions to do what?  Read, execute, write, or all of the above?  Why is this something you wouldn't do as root using sudo?  Before you open up your software to the world you might want to consider the security implications.

In any case, as root, you would type in:

chmod <number> <path>

where the number (three digits) sets the permissions for the owner, group, and world.  World means everybody.  

1= execute
2=write
4=read

Numbers are addititive.  So, for example, if you wanted opt to be open to the world (including dsl) for reading and executing but not for writing, but you wanted root (the owner) to be able to do anything you might do:

sudo chmod 755 /opt

I highly recommend reading the man page for chmod, chgrp, chattr, chage, etc... and learn basic UNIX/Linux security.  You really don't want to leave things open to the world if you don't have to.

Quote (whiteweasel @ May 01 2006,17:14)
Quote (mannetje @ May 01 2006,15:22)
i need user dsl to have permittions over the /opt directory how?

Permissions to do what?  Read, execute, write, or all of the above?  Why is this something you wouldn't do as root using sudo?  Before you open up your software to the world you might want to consider the security implications.

In any case, as root, you would type in:

chmod <number> <path>

where the number (three digits) sets the permissions for the owner, group, and world.  World means everybody.  

1= execute
2=write
4=read

Numbers are addititive.  So, for example, if you wanted opt to be open to the world (including dsl) for reading and executing but not for writing, but you wanted root (the owner) to be able to do anything you might do:

sudo chmod 755 /opt

I highly recommend reading the man page for chmod, chgrp, chattr, chage, etc... and learn basic UNIX/Linux security.  You really don't want to leave things open to the world if you don't have to.

i need permissions for user dsl to read write and execute in /opt
User dsl has permissions to execute in /opt, and to read and write some existing files (DSL-specific stuff, mostly).  If this is not the case, then something went wrong on your end.

If you want to write new files to /opt as dsl, you should chmod 775 /opt, but as whiteweasel said there is really little reason to do this.
opt is a system directory, and should therefore not be writeable by regular users.  Changing this behavior opens your system to a greater chance of corruption. It's your choice, of course, but I'm just letting you know that so far I have never heard any useful reason for doing this.

Quote (mikshaw @ May 02 2006,08:00)
User dsl has permissions to execute in /opt, and to read and write some existing files (DSL-specific stuff, mostly).  If this is not the case, then something went wrong on your end.

If you want to write new files to /opt as dsl, you should chmod 775 /opt, but as whiteweasel said there is really little reason to do this.
opt is a system directory, and should therefore not be writeable by regular users.  Changing this behavior opens your system to a greater chance of corruption. It's your choice, of course, but I'm just letting you know that so far I have never heard any useful reason for doing this.

i know but for my proposes this is neccesairy but i need to chmod it i know but how, i don't know how to use the chmod command now don't give me something like chmod username permittions dirrectory because i still don't know nothing i just need the code i need to enter in my console please help...
Next Page...
original here.