You are not logged in.

#1 2008-03-26 18:40:37

otisranson
Member
Registered: 2008-01-31
Posts: 33

I can't get my permissions correct.

I reformatted my laptop, but I can't get my user set up the way I want.

# adduser

Login name for new user []: otis

User ID ('UID') [ defaults to next available ]: 

Initial group [ users ]: users

Additional groups (comma separated) []: audio,disk,storage,optical,network,power,tty,adesklets

Home directory [ /home/otis ] 
- Warning: '/home/otis' already exists !
  Do you wish to change the home directory path ? (Y/n)  n
  Do you want to chown otis.users /home/otis ? (y/N)  y

Shell [ /bin/bash ] 

Expiry date (YYYY-MM-DD) []: 

New account will be created as follows:

---------------------------------------
Login name.......:  otis
UID..............:  [ Next available ]
Initial group....:  users
Additional groups:  audio,disk,storage,optical,network,power,tty,adesklets
Home directory...:  /home/otis
Shell............:  /bin/bash
Expiry date......:  [ Never ]

This is it... if you want to bail out, hit Control-C.  Otherwise, press
ENTER to go ahead and make the account.

But after I log in with my user, I can't access /media/disk (Windows partition) I get permissions denied.


Also, I know I'm reusing that /home/otis folder, I just removed my user from the /etc/passwd file.

Last edited by otisranson (2008-03-26 18:41:19)

Offline

#2 2008-03-26 19:25:40

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: I can't get my permissions correct.

See "user" and "users" option in:

man mount

Offline

#3 2008-03-26 23:39:30

otisranson
Member
Registered: 2008-01-31
Posts: 33

Re: I can't get my permissions correct.

Ah thanks, I forgot to check the fstab. I'll do it later!

Offline

#4 2008-03-27 02:04:14

otisranson
Member
Registered: 2008-01-31
Posts: 33

Re: I can't get my permissions correct.

#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0


/dev/cdrom /mnt/cdrom   auto   ro,user,noauto,unhide   0      0
/dev/dvd /mnt/dvd   udf   ro,user,noauto,unhide   0      0
/dev/sda2 swap swap defaults 0 0
/dev/sda3 / reiserfs defaults 0 1
/dev/sda1 /media/C: ntfs ro,users,auto 0 1

mad No dice.

$ dir /media/C:
dir: cannot open directory /media/C\:: Permission denied

Also my /etc/passwd file

root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
mail:x:8:12:mail:/var/spool/mail:/bin/false
ftp:x:14:11:ftp:/home/ftp:/bin/false
nobody:x:99:99:nobody:/:/bin/false
dbus:x:81:81:System message bus:/:/bin/false
hal:x:82:82:HAL daemon:/:/bin/false
avahi:x:84:84:Avahi daemon:/:/bin/false
otis:x:1000:100:,,,:/home/otis:/bin/bash

Last edited by otisranson (2008-03-27 02:05:59)

Offline

#5 2008-03-27 03:05:15

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: I can't get my permissions correct.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#6 2008-03-27 20:29:07

Zepp
Member
From: Ontario, Canada
Registered: 2006-03-25
Posts: 334
Website

Re: I can't get my permissions correct.

Output of:

ls -l /media

please.

Last edited by Zepp (2008-03-27 20:29:36)

Offline

#7 2008-03-31 21:23:49

otisranson
Member
Registered: 2008-01-31
Posts: 33

Re: I can't get my permissions correct.

$ ls -l /media
total 8
dr-x------ 1 root root 8192 2008-03-30 19:58 C:

Offline

#8 2008-03-31 23:07:44

Zepp
Member
From: Ontario, Canada
Registered: 2006-03-25
Posts: 334
Website

Re: I can't get my permissions correct.

Try mounting it with ro,users,umask=022

in fstab something like this

/dev/device /media/C ntfs ro,users,umask=022 0 0

Last edited by Zepp (2008-03-31 23:08:30)

Offline

#9 2008-03-31 23:26:23

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: I can't get my permissions correct.

why don't you want to hal mount your partition?


Give what you have. To someone, it may be better than you dare to think.

Offline

#10 2008-04-01 01:58:04

otisranson
Member
Registered: 2008-01-31
Posts: 33

Re: I can't get my permissions correct.

wonder wrote:

why don't you want to hal mount your partition?

Never have mounted a partition using hal, I have always used /etc/fstab to do it.

Offline

#11 2008-04-04 04:06:20

Zepp
Member
From: Ontario, Canada
Registered: 2006-03-25
Posts: 334
Website

Re: I can't get my permissions correct.

Is this solved?

Offline

Board footer

Powered by FluxBB