Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
permessi sbagliati [risolto] :)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
g3nt00_m4n
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jan 2005
Posts: 132

PostPosted: Tue Aug 30, 2005 3:05 pm    Post subject: permessi sbagliati [risolto] :) Reply with quote

ho installato gentoo seguendo la guida ma da user normale non riesco a fare ls / , mi da' permesso negato, a quale gruppo devo aggiungere l'utente?
o devo fare qualcos'altro?
ho provato ad inserirlo nel gruppo root ma dopo averlo fatto non mi fa loggare mi dice /home/nomeutente non esiste :(


Last edited by g3nt00_m4n on Wed Aug 31, 2005 12:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
bender86
Guru
Guru


Joined: 18 Mar 2005
Posts: 484

PostPosted: Tue Aug 30, 2005 7:20 pm    Post subject: Re: permessi sbagliati Reply with quote

g3nt00_m4n wrote:
ho installato gentoo seguendo la guida ma da user normale non riesco a fare ls / , mi da' permesso negato, a quale gruppo devo aggiungere l'utente?

Spero di sbagliarmi ma... quando hai scompattato lo stage hai usato l'opzione -p?
Code:
tar -xvjpf stage1-x86-2005.0.tar.bz2

Altrimenti non hai preservato i permessi che aveva l'archivio, e probabilmente ogni file ha come permessi 600 (lettura e scrittura dal proprietario, root, e niente per gli altri). In questo caso penso che la soluzione più accettabile sia la reinstallazione.
Per esserne certo prova a dare come root ls -l /. I permessi di tutte o quasi le directory dovrebbero essere drwxr-xr-x. la prima lettera indica il tipo di file (directory in questo caso), la prima terna (rwx, o magari in un altro ordine, ma queste lettere) sono i permessi del proprietario, e indicano lettura (r), scrittura (w) e accesso/esecuzione (x). La seconda terna sono i permessi del gruppo (solo lettura e accesso) e l'ultima i permessi di tutti gli altri. Se invece i permessi sono drwx------, allora hai probabilmente sbagliato a scompattare lo stage, perché solo il proprietario può accedere alle directory.

g3nt00_m4n wrote:
ho provato ad inserirlo nel gruppo root ma dopo averlo fatto non mi fa loggare mi dice /home/nomeutente non esiste :(

Qua invece non capisco. Se non ti riesci a loggare come utente come fai a sapere che non riesci a vedere /? In ogni caso puoi creare la directory home così:
Code:
cp -a /etc/skel /home/nomeutente
chown -R utente:users /home/nomeutente
Back to top
View user's profile Send private message
g3nt00_m4n
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jan 2005
Posts: 132

PostPosted: Tue Aug 30, 2005 7:31 pm    Post subject: Re: permessi sbagliati Reply with quote

bender86 wrote:

Spero di sbagliarmi ma... quando hai scompattato lo stage hai usato l'opzione -p?
Code:
tar -xvjpf stage1-x86-2005.0.tar.bz2

Altrimenti non hai preservato i permessi che aveva l'archivio, e probabilmente ogni file ha come permessi 600 (lettura e scrittura dal proprietario, root, e niente per gli altri). In questo caso penso che la soluzione più accettabile sia la reinstallazione.

si l'ho messa

Quote:

Per esserne certo prova a dare come root ls -l /. I permessi di tutte o quasi le directory dovrebbero essere drwxr-xr-x. la prima lettera indica il tipo di file (directory in questo caso), la prima terna (rwx, o magari in un altro ordine, ma queste lettere) sono i permessi del proprietario, e indicano lettura (r), scrittura (w) e accesso/esecuzione (x). La seconda terna sono i permessi del gruppo (solo lettura e accesso) e l'ultima i permessi di tutti gli altri. Se invece i permessi sono drwx------, allora hai probabilmente sbagliato a scompattare lo stage, perché solo il proprietario può accedere alle directory.


drwxr-xr-x i permessi sono ok :)

bender86 wrote:

g3nt00_m4n wrote:
ho provato ad inserirlo nel gruppo root ma dopo averlo fatto non mi fa loggare mi dice /home/nomeutente non esiste :(

Qua invece non capisco. Se non ti riesci a loggare come utente come fai a sapere che non riesci a vedere /? In ogni caso puoi creare la directory home così:
Code:
cp -a /etc/skel /home/nomeutente
chown -R utente:users /home/nomeutente


se metto l'utente nel gruppo root non riesco a loggare perchè mi dice che non c'è la cartella /home/nomeutente (anche se esiste)
mentre se lo tolgo dal gruppo root mi loggo ma con ls / non vedo nulla

spero di essere stato più chiaro :)
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Tue Aug 30, 2005 10:18 pm    Post subject: Reply with quote

ci posti l'ouput del comando:
Code:
cat /etc/passwd | grep tuonomeutente

_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
g3nt00_m4n
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jan 2005
Posts: 132

PostPosted: Wed Aug 31, 2005 11:48 am    Post subject: Reply with quote

X-Drum wrote:
ci posti l'ouput del comando:
Code:
cat /etc/passwd | grep tuonomeutente


Code:
andrea:x:1000:11::/home/andrea:/bin/bash
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Wed Aug 31, 2005 12:12 pm    Post subject: Re: permessi sbagliati Reply with quote

g3nt00_m4n wrote:
ho installato gentoo seguendo la guida ma da user normale non riesco a fare ls / , mi da' permesso negato, a quale gruppo devo aggiungere l'utente?
o devo fare qualcos'altro?
ho provato ad inserirlo nel gruppo root ma dopo averlo fatto non mi fa loggare mi dice /home/nomeutente non esiste :(


ciao

da root puoi postare l'output di questo comando:

Code:

ls -al /


Inoltre anche il contenuto di /etc/fstab.

ciao
_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
g3nt00_m4n
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jan 2005
Posts: 132

PostPosted: Wed Aug 31, 2005 12:16 pm    Post subject: Re: permessi sbagliati Reply with quote

comio wrote:

ciao
da root puoi postare l'output di questo comando:
Code:

ls -al /

Inoltre anche il contenuto di /etc/fstab.
ciao


Code:
ls -al /
totale 72
d-wxr----t  18 root root  4096 30 lug 13:03 .
d-wxr----t  18 root root  4096 30 lug 13:03 ..
drwxr-xr-x   2 root root  4096 30 ago 19:34 bin
drwxr-xr-x   2 root root  4096 30 ago 19:45 boot
drwxr-xr-x  22 root root 30800 31 ago 01:22 dev
drwxr-xr-x  56 root root  4096 31 ago 13:57 etc
drwxr-xr-x   3 root root  4096 29 ago 07:53 home
drwxr-xr-x   8 root root  4096 30 ago 19:38 lib
drwx------   2 root root 16384 29 ago 06:09 lost+found
drwxr-xr-x   7 root root  4096 30 ago 19:10 mnt
drwxr-xr-x   5 root root  4096 30 ago 19:32 opt
dr-xr-xr-x  93 root root     0 31 ago 01:34 proc
drwx------  16 root root  4096 31 ago 01:51 root
drwxr-xr-x   2 root root  4096 30 ago 19:38 sbin
drwxr-xr-x  10 root root     0 31 ago 01:34 sys
drwxrwxrwt  17 root root  4096 31 ago 13:49 tmp
drwxr-xr-x  17 root root  4096 31 ago 00:28 usr
drwxr-xr-x  13 root root  4096 31 ago 01:04 var
homer andrea # cat /etc/fstab
# /etc/fstab: static file system information.
# $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.18.4.1 2005/01/31 23:05:14 vapier Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# See the manpage fstab(5) for more information.

# <fs>                  <mountpoint>    <type>          <opts>                  <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT              /boot           ext2            noauto,noatime          1 2
/dev/hdb1               /               ext3            noatime                 0 1
/dev/hdb2               none            swap            sw                      0 0
/dev/hda1               /mnt/win        ntfs            auto,ro,user,umask=000  0 0
/dev/hda5               /mnt/Archivio   ntfs            auto,ro,user,umask=000  0 0
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro,user          0 0
/dev/cdroms/cdrom1      /mnt/cdrom1     iso9660         noauto,ro,user          0 0
/dev/fd0                /mnt/floppy     auto            noauto,users            0 0

# NOTE: The next line is critical for boot!
proc                    /proc           proc            defaults        0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
#shm                    /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Wed Aug 31, 2005 12:24 pm    Post subject: Re: permessi sbagliati Reply with quote

g3nt00_m4n wrote:

Code:
ls -al /
totale 72
d-wxr----t  18 root root  4096 30 lug 13:03 .
d-wxr----t  18 root root  4096 30 lug 13:03 ..


i diritti devono diventare:
Code:

drwxr-xr-x  18 root root  4096 30 lug 13:03 .
drwxr-xr-x 18 root root  4096 30 lug 13:03 ..


come mai i diritti sono saltati?

ciao
_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
g3nt00_m4n
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jan 2005
Posts: 132

PostPosted: Wed Aug 31, 2005 12:37 pm    Post subject: Reply with quote

Sistemato :D grazie

non mi ero accorto della cosa, non so come mai c'erano i diritti sballati, l'unica cosa strana che ho fatto è stato che nell'istallare invece di partire dal cd di gentoo che non ha ndiswapper, sono partito con una knoppix ed ho installato tutto dalla knoppix
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum