hi,
> I am totally new to Linux. I want to give write permission to one directory
> - want to create and write into the file - I can open the directory (like
> explorer in windows), but then how to give the write permission ?
>
> Can anybody explain in detail the steps involved? I am sorry to ask such a
> silly question, but...
if u are asking this question for the sake of asking question then go away!!!
if you really wanted to enlighten and become a part of linux and share knowledge
then here is the solution.
Every file and directory under linux as 3 modes of permission
filetype (-) (d for directory, - for file and so on)
read (r) --- numeric equivalent is 4
write (w) 2
execute (x) 1
1. create a directory
# mkdir /home/test
2 change the owner permission for user
# chown manisha.manisha /home/test
3 now inorder for the user manisha to open the directory and create/write into the file
make sure that the directory should have execute bit set along with read and write
eg: drwx------ 5 manisha manisha
if say it is
drw------- 5 manisha manisha
then u can't get into the directory. in order to get into the directory issue the
execute permission remember the directory should always be set with execute
permission(x)
# chmod u+rwx /home/test
or
# chmod 0700 /home/test (where 7=4+2+1) ie rwx permission bit set
hope this is sufficient
for more info read man pages
$ man -k chmod
$ man -k chown
cheers
-rk-
-------------------------------------------
Ramakrishna | [EMAIL PROTECTED]
Exocore Consulting | http://www.exocore.com
Bangalore, India | +91 (80) 344-0397
-------------------------------------------
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list