permissions

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
peppe89ct
Level 1
Level 1
Posts: 11
Joined: Mon Apr 23, 2012 6:20 am

permissions

Post by peppe89ct » Thu Aug 02, 2012 10:31 am

hello guys I've been using linux since a couple of time and i have a big problem...
First sorry for my english...
my problem is that linux mounted two partitions one for each hd at boot and i can't umount and mount theese.....
the problem was created because in one hd could not change the permissions and I install ntfs-conf and with the program i have done a trouble .... now I can mount and unmount the hd .... and if I run the command ls-l permits are issued only for the root:

Code: Select all


totale 14645625
dr-xr-xr-x 1 root root       4096 giu 22 13:21 Boot
-r-xr-xr-x 1 root root     383786 nov 21  2010 bootmgr
-r-xr-xr-x 1 root root       8192 giu 22 13:21 BOOTSECT.BAK
dr-xr-xr-x 1 root root          0 giu 22 17:28 BywifiSave
dr-xr-xr-x 1 root root     393216 lug 30 22:40 BywifiShare
lrwxrwxrwx 2 root root         60 lug 14  2009 Documents and Settings -> /media/sda1/Users
-r-xr-xr-x 1 root root 6426832896 lug 30 22:20 hiberfil.sys
dr-xr-xr-x 1 root root          0 giu 22 14:36 Intel
-r-xr-xr-x 2 root root         29 lug 15 12:33 mini-agent.txt
dr-xr-xr-x 1 root root          0 giu 24 15:38 MSOCache
-r-xr-xr-x 1 root root 8569114624 lug 30 22:20 pagefile.sys
dr-xr-xr-x 1 root root          0 lug 14  2009 PerfLogs
dr-xr-xr-x 1 root root       8192 lug 18 17:06 ProgramData
dr-xr-xr-x 1 root root       8192 lug 18 17:04 Program Files
dr-xr-xr-x 1 root root      12288 lug 24 18:50 Program Files (x86)
lrwxrwxrwx 2 root root         92 giu 22 12:27 Programmi -> /media/sda1/Program Files
dr-xr-xr-x 1 root root          0 giu 22 12:27 Recovery
dr-xr-xr-x 1 root root          0 giu 22 12:27 $Recycle.Bin
dr-xr-xr-x 1 root root      20480 lug 27 20:21 System Volume Information
-r-xr-xr-x 1 root root       1491 lug 13 17:35 user.js
dr-xr-xr-x 1 root root       4096 giu 22 12:27 Users
-r-xr-xr-x 1 root root     300487 giu 25 17:13 UYIJX
dr-xr-xr-x 1 root root       4096 lug 27 17:53 wamp
dr-xr-xr-x 1 root root      16384 lug 30 22:20 Windows
this is for an hd...then the other

Code: Select all

totale 66024
-r-xr-xr-x 1 root root  7361925 lug 27 14:25 ANDROID-PROGRAMMING.pdf
dr-xr-xr-x 1 root root     4096 nov 10  2011 Boot
dr-xr-xr-x 1 root root   524288 giu 20 12:28 BywifiShare
-r-xr-xr-x 2 root root 29515908 set 28  2011 Canuto, Tabacco - Analisi Matematica 1.pdf
dr-xr-xr-x 1 root root    40960 feb 15 17:28 Corso iOS
-r-xr-xr-x 2 root root  5407961 feb 15 16:07 Diventare_un_XCoder_4.pdf
dr-xr-xr-x 1 root root     4096 mag  5 16:35 Documenti di studio&VARI&IMPORTANTI
dr-xr-xr-x 1 root root     4096 ott 15  2011 Dropbox
dr-xr-xr-x 1 root root     4096 ott 15  2011 Edicola4
dr-xr-xr-x 1 root root     4096 lug 25 18:02 Fisica 1 29elode
dr-xr-xr-x 1 root root   327680 lug 31 13:57 Incoming
-r-xr-xr-x 1 root root 10124162 lug 27 14:27 Libro_PI_002_-_IPhone_programming_ok.pdf
-r-xr-xr-x 1 root root  1120340 lug 23 22:34 passrec.zip
dr-xr-xr-x 1 root root     8192 lug 22 20:52 Per formattare
dr-xr-xr-x 1 root root        0 lug 15 12:51 PFiles
dr-xr-xr-x 1 root root     4096 ott 15  2011 Pippo's Multimedia
dr-xr-xr-x 1 root root        0 feb  1  2012 Programmare ios
dr-xr-xr-x 1 root root     4096 mag  5 16:38 Programmi e link importanti
dr-xr-xr-x 1 root root        0 lug 26 14:37 $RECYCLE.BIN
-r-xr-xr-x 1 root root  1561615 gen 15  2012 Sintini-Fisica-no-problem2.pdf
dr-xr-xr-x 1 root root        0 lug 26 14:37 System Volume Information
-r-xr-xr-x 2 root root 11532571 feb 15 16:33 Tutorial pratici per iOS SDK v2.0.pdf
dr-xr-xr-x 1 root root     8192 lug 19 19:27 Università
dr-xr-xr-x 1 root root    24576 feb 15 17:17 WebApp per iOS
dr-xr-xr-x 1 root root        0 gen 16  2012 WindowsImageBackup
-r-xr-xr-x 1 root root     1383 lug 23 15:24 xorg.conf
if I try to mount or unmount the HD gives me an error message
"Error unmounting: umount exited with exit code 1: helper failed with:
umount: only root can unmount UUID=5A00E6CD0570D149 from /media/5A00E6CD0570D149"
anyone can help me?
how i fix permissions for user and not only for root?
thnks a lot for help and for my english

altair4
Level 19
Level 19
Posts: 9687
Joined: Tue Feb 03, 2009 10:27 am

Re: permissions

Post by altair4 » Thu Aug 02, 2012 11:54 am

Please post the output of the following commands:

Code: Select all

cat /etc/fstab

Code: Select all

sudo blkid -c /dev/null

Code: Select all

mount
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

peppe89ct
Level 1
Level 1
Posts: 11
Joined: Mon Apr 23, 2012 6:20 am

Re: permissions

Post by peppe89ct » Thu Aug 02, 2012 4:32 pm

These are the two results by running the first command in both the hd

Code: Select all

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

proc	/proc	proc	nodev,noexec,nosuid	0	0
#Entry for /dev/sda2 :
UUID=2deac2c1-e429-4cf6-90b6-d8dc71ef56bc	/	ext4	errors=remount-ro	0	1
#Entry for /dev/sdb1 :
UUID=5A00E6CD0570D149	/media/5A00E6CD0570D149	ntfs	defaults,nls=utf8,umask=0222,nosuid,nodev	0	0
#Entry for /dev/sda1 :
UUID=1AB84AA8B84A81ED	/media/sda1	ntfs	defaults,nls=utf8,umask=0222	00
#Entry for /dev/sda5 :
UUID=bf688bdd-154a-4e51-bc10-30f1fc5513e5	none	swap	sw	0	0


# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

proc	/proc	proc	nodev,noexec,nosuid	0	0
#Entry for /dev/sda2 :
UUID=2deac2c1-e429-4cf6-90b6-d8dc71ef56bc	/	ext4	errors=remount-ro	0	1
#Entry for /dev/sdb1 :
UUID=5A00E6CD0570D149	/media/5A00E6CD0570D149	ntfs	defaults,nls=utf8,umask=0222,nosuid,nodev	0	0
#Entry for /dev/sda1 :
UUID=1AB84AA8B84A81ED	/media/sda1	ntfs	defaults,nls=utf8,umask=0222	00
#Entry for /dev/sda5 :
UUID=bf688bdd-154a-4e51-bc10-30f1fc5513e5	none	swap	sw	0	0
and these are the result of the other command runned in both the hd...

Code: Select all

/dev/sda1: UUID="1AB84AA8B84A81ED" TYPE="ntfs" 
/dev/sda2: UUID="2deac2c1-e429-4cf6-90b6-d8dc71ef56bc" TYPE="ext4" 
/dev/sda5: UUID="bf688bdd-154a-4e51-bc10-30f1fc5513e5" TYPE="swap" 
/dev/sdb1: UUID="5A00E6CD0570D149" TYPE="ntfs" 

/dev/sda1: UUID="1AB84AA8B84A81ED" TYPE="ntfs" 
/dev/sda2: UUID="2deac2c1-e429-4cf6-90b6-d8dc71ef56bc" TYPE="ext4" 
/dev/sda5: UUID="bf688bdd-154a-4e51-bc10-30f1fc5513e5" TYPE="swap" 
/dev/sdb1: UUID="5A00E6CD0570D149" TYPE="ntfs" 

/dev/sda2 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/sdb1 on /media/5A00E6CD0570D149 type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sda1 on /media/sda1 type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/peppeapk/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=peppeapk)

/dev/sda2 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/sdb1 on /media/5A00E6CD0570D149 type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sda1 on /media/sda1 type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/peppeapk/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=peppeapk)
what kind of problem i have??
thanks and sorry for my english :(

altair4
Level 19
Level 19
Posts: 9687
Joined: Tue Feb 03, 2009 10:27 am

Re: permissions

Post by altair4 » Thu Aug 02, 2012 5:06 pm

I have no idea why you are showing me duplicates of everything. There's probably something in the way you say "running the first command in both the hd" that I'm missing which is the key to your problem but I don't understand it.

Anyway, this partition:
UUID=5A00E6CD0570D149 /media/5A00E6CD0570D149 ntfs defaults,nls=utf8,umask=0222,nosuid,nodev 0 0
That partition will mount, assuming you actually created /media/5A00E6CD0570D149, as read only.

** If the problem is that you can't unmount it as a regular user, that's the way it's supposed to be. Only root can unmount it. If you don't want that to happen then don't have an entry in fstab.

** If the problem is that you don't have write access then change the umask to 0000:
UUID=5A00E6CD0570D149 /media/5A00E6CD0570D149 ntfs defaults,nls=utf8,umask=0000,nosuid,nodev 0 0

Then unmount the partition:

Code: Select all

sudo umount /media/5A00E6CD0570D149
And remount it with the corrected fstab:

Code: Select all

sudo mount -a
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

peppe89ct
Level 1
Level 1
Posts: 11
Joined: Mon Apr 23, 2012 6:20 am

Re: permissions

Post by peppe89ct » Mon Aug 06, 2012 3:49 am

Nothing problem not solved......i think that i'll format...thanks a lot !

Post Reply

Return to “Software & Applications”