LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-28-2009, 04:27 AM   #1
abolishtheun
Member
 
Registered: Mar 2008
Posts: 183

Rep: Reputation: 31
disk device permission reverting after chmod?


Why does /dev/sdc's permission keep reverting to 660 when I explicitely chmod it 664? It seems to happen as soon as I touch it. It's got to be some security feature... distro is ubuntu 9.04

Code:
user@user-desktop:~$ ls -l /dev/sdc
brw-rw---- 1 root disk 8, 32 2009-06-28 02:18 /dev/sdc

user@user-desktop:~$ sudo chmod 666 /dev/sdc
[sudo] password for user: 

user@user-desktop:~$ ls -l /dev/sdc
brw-rw-rw- 1 root disk 8, 32 2009-06-28 02:18 /dev/sdc

user@user-desktop:~$ touch /dev/sdc

user@user-desktop:~$ ls -l /dev/sdc
brw-rw---- 1 root disk 8, 32 2009-06-28 02:23 /dev/sdc

Last edited by abolishtheun; 06-28-2009 at 04:41 AM.
 
Old 06-28-2009, 06:24 AM   #2
jiatong
LQ Newbie
 
Registered: May 2009
Posts: 8

Rep: Reputation: 2
what file system are you using? Perhaps you are trying to change the permissions of a file system (like most of the windows ones) which does not support linux type permissions.

EDIT: nvm just realized your trying to set the permissions of a device node not a file on another disk/partition itself

Last edited by jiatong; 06-28-2009 at 06:29 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
Why chmod cannot change symbolic link permission? mikeshn Linux - General 17 03-22-2012 07:08 PM
chmod can not change permission lovelylinux Linux - Software 5 09-20-2007 05:22 AM
chmod permission change? tidasu Linux - Newbie 7 08-30-2004 06:02 PM
using chmod to change file permission kiwidoc Linux - Newbie 3 07-25-2004 06:39 AM
chmod : permission denied onebyone Linux - Software 4 01-27-2004 02:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:13 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