You are not logged in.
Pages: 1
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
See "user" and "users" option in:
man mount
Offline
Ah thanks, I forgot to check the fstab. I'll do it later!
Offline
#
# /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
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
Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz
Offline
Output of:
ls -l /media
please.
Last edited by Zepp (2008-03-27 20:29:36)
Offline
$ ls -l /media
total 8
dr-x------ 1 root root 8192 2008-03-30 19:58 C:
Offline
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
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
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
Is this solved?
Offline
Pages: 1