Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: need user permittions, need user permittions over /opt< Next Oldest | Next Newest >
mannetje Offline





Group: Members
Posts: 15
Joined: April 2006
Posted: May 01 2006,19:22 QUOTE

i need user dsl to have permittions over the /opt directory how?
Back to top
Profile PM 
whiteweasel Offline





Group: Members
Posts: 14
Joined: May 2006
Posted: May 01 2006,21:14 QUOTE

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.
Back to top
Profile PM 
mannetje Offline





Group: Members
Posts: 15
Joined: April 2006
Posted: May 02 2006,10:31 QUOTE

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
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: May 02 2006,12:00 QUOTE

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.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
mannetje Offline





Group: Members
Posts: 15
Joined: April 2006
Posted: May 02 2006,15:04 QUOTE

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...
Back to top
Profile PM 
8 replies since May 01 2006,19:22 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: need user permittions

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code