Who told you to use that command? Never heard

chmod u+rwx  <file>

and before that you have to

chown <username> <file>

or directory.

-Girish

On Mon, Mar 18, 2013 at 12:37 PM, Manivel Rajendran
<[email protected]> wrote:
> Dear All,
>
>                  I am facing problem to give permission. I need to give
> full permission (rwx) for a user in the directory or file.
> I tried "setfacl" command but changed group permission also.i  am using
> centos 6.3.
>
> this is before applying "setfacl command"
>
> [root@sysadmin html]# ls -ld test/
> drwxr-xr-x 15 root apache 4096 Mar 11 20:50 test/       ---> before group
> permission
>
> i tried this command
>
> [root@sysadmin html]# setfacl -m  u:test:rwx  test/
>
> *this is after applying setfacl command *
>
> i checked folder permission
>
> [root@sysadmin html]# ls -ld test/
> drwxrwxr-x+ 15 root apache 4096 Mar 11 20:50 test/              --->
> changed group permission
> [root@sysadmin html]#
>
> [root@sysadmin html]# getfacl test/
> # file: test/
> # owner: root
> # group: apache
> user::rwx
> user:test:rwx
> group::r-x
> mask::rwx
> other::r-x
>
> I need to give full permission for a user without change owner and group
> permission.
> pls help me...
> --
> *Thanks & Regards*
>
> *Manivel Rajendran*
> _______________________________________________
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc



-- 
Gayatri Hitech
http://gayatri-hitech.com
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to