LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-23-2014, 06:04 AM   #1
ganesan_p
Member
 
Registered: Jun 2014
Posts: 37

Rep: Reputation: Disabled
Question how to give permissions


hi all,

i have four partitions in my pendrive for flashing os. all partitions are read and write permission for oweners(brw-------). i have to change some partitions are read only . but i don't know how to do it please give the solutions.

thanks and regards,
ganesan p
 
Old 06-23-2014, 06:48 AM   #2
sunilpopaliya
Member
 
Registered: Apr 2012
Posts: 47

Rep: Reputation: 4
Hello,

Change directory to your pendrive where partitions are there.

Use chmod command as below.

chmod u+r <direectory name> for read permission to owner, u+w write permission for owner and u+x for execution permission for owner and also you can use any combination of rwx.

chmod g+r <direectory name> for read permission for group, g+w for write permission for group and g+x for execution permission for group and all combination of rwx

chmod o+r <direectory name> for read permission for other, o+w for write permission for other and o+x for execution permission for other and all combination of rwx

Thanks and Regards,
Sunil
 
Old 06-23-2014, 06:59 AM   #3
ganesan_p
Member
 
Registered: Jun 2014
Posts: 37

Original Poster
Rep: Reputation: Disabled
thanks your reply,

i have already tried this method but it is not working.

i used,
1.chmod 777 partition_path_name
2.chmod -R 777 partition_path_name
3. chmod u+r partition_path_name

after putting this commands i checked the file permission using ls -l command that time only it's telling like changing file permission like br------ .then i restart and checked using ls -l command that time it is showing brw----- .


thanks and regards,
ganesan p

Last edited by ganesan_p; 06-23-2014 at 07:02 AM.
 
Old 06-23-2014, 07:09 AM   #4
sunilpopaliya
Member
 
Registered: Apr 2012
Posts: 47

Rep: Reputation: 4
Hello,

can you give me output of the below command.

change to pendrive directory

ls -lrt

id

Thanks and Regards,
Sunil
 
Old 06-23-2014, 07:27 AM   #5
ganesan_p
Member
 
Registered: Jun 2014
Posts: 37

Original Poster
Rep: Reputation: Disabled
hi sunil,

please check this...

1. ls -lrt


brw------- 1 root root 1, 8 Jun 12 17:44 hd0t77
brw------- 1 root root 1, 7 Jun 12 17:44 hd0t78
brw------- 1 root root 1, 6 Jun 12 17:44 hd0t79
brw------- 1 root root 1, 5 Jun 12 17:44 hd0t8


2. id


uid=0(root) gid=0(root) groups=1(bin),3(sys),4(adm),5(tty)

hi sunil this chmod is working good for my file and directory but it is not working for partitions.

thanks and regards,
ganesan p

Last edited by ganesan_p; 06-23-2014 at 07:31 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i give permissions to a folder? epamuk Linux - General 6 12-30-2009 01:37 PM
How to give myself root permissions royeo Linux - Newbie 11 08-12-2006 03:01 AM
How to give permissions for users....... manikantha Linux - General 1 03-17-2005 04:27 AM
Not able to give execute permissions needanyhelp? Linux - General 4 08-20-2004 05:19 AM
Is there a simple way to give all permissions frontier1 Linux - General 3 02-28-2003 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration