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
 

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

reply to topic new topic new poll
Topic: permisions, changin permision on harddrive< Next Oldest | Next Newest >
Bilal Offline





Group: Members
Posts: 73
Joined: April 2004
Posted: Mar. 18 2005,04:06 QUOTE

hello,

i did sudo su.. then i changed the perm of hda1 --> chmod a-x , a-r,  a-w. i checkd using ls -l and the perms where changed.. i tried to mound the hd using mount /mnt/hda1 and it sill mounted and i was able to read and write, although i have set the perm for all users including root.. i loged out of root to dsl@box and still i was able to do the same thing..

is this a bug or im doing somthing wrong here ??

thanks


--------------
Luck is when preperation meets apportonity.
Back to top
Profile PM MSN YIM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Mar. 18 2005,04:59 QUOTE

What was the exact command you used?
Typically chmod is done only to files, not to drives.  If you did "chmod <mode> /dev/hda1" you are changing only the device file.  If you do "chmod <mode> /mnt/hda1" it changes only the mount point.

If you want to make a drive read-only, try editing /etc/fstab....add "ro" to the options of hda1

Also, permissions do not apply to root.


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





Group: Members
Posts: 73
Joined: April 2004
Posted: Mar. 18 2005,06:21 QUOTE

ok .. i cant change the fstab file , as it is part of a read only file system , even if i use the toram option.

so how can i do that using the command line.

thanks


--------------
Luck is when preperation meets apportonity.
Back to top
Profile PM MSN YIM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Mar. 18 2005,13:24 QUOTE

It depends on the filesystem on hda1.  For fat32 it would be something like this:
sudo mount -t vfat -r /dev/hda1 /mnt/hda1

http://www.die.net/doc/linux/man/man8/mount.8.html


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
3 replies since Mar. 18 2005,04:06 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: permisions

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