• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

Changing permissions on drive

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

jmh547

Member
Joined
Jul 26, 2005
ok at login screen i cant not login as root. i get message admin cannot login here. but i need to change the permissions for my storage drives (ntfs and fat32) and and my win part (ntfs) but i have to be root to do this so how do i go about this
 
You can't login as root, as in your password is no good, please re-enter it? Last time I checked, root was always allowed to login on /dev/console, unless you've used some unconventional warfare :)

Try logging into your user account then using su...what's the exact error you're getting?
 
jmh547 said:
ok at login screen i cant not login as root. i get message admin cannot login here. but i need to change the permissions for my storage drives (ntfs and fat32) and and my win part (ntfs) but i have to be root to do this so how do i go about this
That's probably going to require editing /etc/fstab.

Open up a terminal editor. Type in:
Code:
su -
Now enter the root password when it asks for a password. If it works, you will be able to run commands as root. Now use you favorite text editor to open /etc/fstab. I'm going to use emacs, so type in:
Code:
emacs /etc/fstab
If they don't already exist, you need to add lines for the partitions. You can use either uid/gid to set a certain user/group for the partition, but I''m simply going to use umask to make them all readable/writable/executable to everyone.
Code:
/dev/fat32-drive               /mnt/plcae-to-mount      vfat               umask=0000,user,rw 0 0
/dev/ntfs-drive               /mnt/plcae-to-mount      ntfs               umask=0000,user,ro 0 0
You need to change the paths, of course.

edit: you may also want to check out this guide (you can skip the kernel configuration section):
http://gentoo-wiki.com/HOWTO_Mount_MS_Windows_partitions_(FAT,NTFS)
 
ok using nano did this to fstab

added

Code:
/dev/sda1      /media/win_c      ntfs      unmask=0000,user,ro     0      0

still no permission

fstab looks like this

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda5       /               ext2    defaults,errors=remount-ro 0       1
/dev/hdb        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/hda        /media/cdrom1   iso9660 ro,user,noauto  0       0
/dev/sdc        /media/usb0     auto    rw,user,noauto  0       0
/dev/sda1       /media/win_c    ntfs    unmask=0000,user,ro             0      0

the /dev/sec /media/usb0? that is the usb floppy? allso i tried adding /dev/hdc /media/storage ntfs..... didnt work. i am doing somthing stupid i know it
 
jmh547 said:
ok using nano did this to fstab

added

Code:
/dev/sda1      /media/win_c      ntfs      unmask=0000,user,ro     0      0

still no permission
That's because you want umask=0000 not unmask=0000.

fstab looks like this

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda5       /               ext2    defaults,errors=remount-ro 0       1
/dev/hdb        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/hda        /media/cdrom1   iso9660 ro,user,noauto  0       0
/dev/sdc        /media/usb0     auto    rw,user,noauto  0       0
/dev/sda1       /media/win_c    ntfs    unmask=0000,user,ro             0      0

the /dev/sec /media/usb0? that is the usb floppy?
I don't know. It might be.
allso i tried adding /dev/hdc /media/storage ntfs..... didnt work. i am doing somthing stupid i know it
You need to specify a partition on hdc. If you only have one partition, it's probably /dev/hdc1 that you need to specify.
 
ok got storage to work but the win part isnt

Code:
JMH547:/home/josh# fdisk -l /dev/sda

Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        4862    39053983+   7  HPFS/NTFS
/dev/sda2            4863        9725    39062047+   f  W95 Ext'd (LBA)
/dev/sda5   *        4863        9725    39062016   83  Linux

do i mount sda1 or 2 i am guessing 1 like i hae been doing but it says "couldnot open /media/win_c"
 
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda5       /               ext2    defaults,errors=remount-ro 0       1
/dev/hdb        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/hda        /media/cdrom1   iso9660 ro,user,noauto  0       0
/dev/sda1       /media/win_c    ntfs    uid=1000,user,ro              0      0
/dev/hdc1       /media/storage  ntfs    uid=1000,user,ro      0       0
 
Last edited:
win_c in there as a directory but it has a lock on it.
when i type mount /media/win_c into console i get "drive already mounted" type umount /media/win_c "drive not mount according to mtab".

i then unmounted the drive in root and tried to mount it in console and kde crashed.... so i mounted it in root and it says "drive already mounted according to mtab"
 
ok now i have access i guess kde had to crash first lol. now the way i have fstab setup it will auto mount at login right?
 
Back