Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Permissao em partição compartilhada pelo samba
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Portuguese
View previous topic :: View next topic  
Author Message
AngrA
n00b
n00b


Joined: 06 Apr 2003
Posts: 33
Location: Brasil

PostPosted: Mon Jul 23, 2007 8:40 pm    Post subject: Permissao em partição compartilhada pelo samba Reply with quote

Olá Fórum, estou com o seguinte problema.

Tenho a partição /home (/dev/sda6) compartilhada através de samba para máquina windows.

criei o diretório /home/publico/HD2 e montei a partição /dev/hdc1 neste diretório, mas após montar a partição as máquina windows não tem tem permissão de escrita deste diretório.
Como habilito permissão nesta partição?

[code]
/dev/sda6 on /home type reiserfs (rw)
/dev/hdc1 on /home/publico/HD2 type reiserfs (rw)
[/code]

[code]
ls -lha /home/publico/HD2/
total 1.5K
drwxrwsr-x 4 root root 80 Jul 23 17:01 .
drwxr-xr-x 33 rhs rhs 1.7K Jul 23 17:01 ..
[/code]
Back to top
View user's profile Send private message
pilla
Administrator
Administrator


Joined: 07 Aug 2002
Posts: 7695
Location: Pelotas, BR

PostPosted: Mon Jul 23, 2007 10:51 pm    Post subject: Reply with quote

Como está a sessão correspondente no /etc/samba/smb.conf?
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
AngrA
n00b
n00b


Joined: 06 Apr 2003
Posts: 33
Location: Brasil

PostPosted: Tue Jul 24, 2007 11:34 am    Post subject: Reply with quote

no smb.conf, está da seguinte forma

[public]
comment = Arquivos públicos
available = yes
browseable = yes
read only = no
force create mode = 0770
force diretory mode = 0770
force group = rhs
path = /home/publico
public = yes
guest only = no
writable = yes
create mode = 0666
directory mode = 0777
writable = yes
guest ok = yes
force group = rhs
force user = rhs
valid users = @rhs
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Tue Jul 24, 2007 6:25 pm    Post subject: Reply with quote

Boas.

Mostre o resultado de ls -lisa /home/publico e o seu /etc/fstab.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
AngrA
n00b
n00b


Joined: 06 Apr 2003
Posts: 33
Location: Brasil

PostPosted: Wed Jul 25, 2007 12:17 pm    Post subject: Reply with quote

ls -lisa /home/publico/
servidor ~ # ls -lisa /home/publico/
total 13795
6 2 drwxr-xr-x 33 rhs rhs 1696 Jul 23 17:01 .
2 0 drwxr-xr-x 6 root root 152 Apr 12 23:00 ..
5557 0 drwxrwx--- 5 rhs rhs 136 Jun 28 08:37 Backup
51474 0 drwxrwx--- 4 rhs rhs 96 Jun 30 19:16 DESEN21
51475 0 drwxrwx--- 13 rhs rhs 344 Jul 23 17:13 DESEN75
393933 0 drwxrwx--- 6 rhs rhs 144 Jul 3 16:52 DESEN80
9239 0 drwxrwsrwx 2 rhs rhs 296 Jun 20 09:53 Declaracao ECF
661901 1 drwxrwxrwx 6 rhs rhs 1232 Jun 6 16:35 Desen75_BKP
663127 0 drwxrwxrwx 14 rhs rhs 368 Jul 3 10:35 Desen75_Descontinuados
29599 0 drwxrwsrwx 5 rhs rhs 136 May 30 11:02 Desen90
30111 1 drwxrwx--- 17 rhs rhs 512 Jun 18 14:52 Drivers
5562 0 drwxrwx--- 5 rhs rhs 120 Apr 13 01:59 ECFs
877530 0 drwxrwxrwx 11 rhs rhs 288 Jul 3 17:25 Escritorio
411089 24 -rwxr-x--- 1 rhs rhs 23824 Apr 13 03:51 Excom.exe
411090 12 -rwxr-xr-- 1 rhs rhs 9109 Apr 13 03:51 Excom.zip
916293 0 drwxrwxrwx 5 rhs rhs 120 Jul 19 08:57 Export
47545 12 -rwxr-xr-- 1 rhs rhs 9216 Apr 13 02:36 GUARDA PROVIS_RIA.rtf
8839 0 drwxrwsrwx 4 rhs rhs 96 Apr 13 01:59 Gaveta
47623 1 drwxrwx--- 6 rhs rhs 496 Apr 13 11:32 Genexus
8838 4 -rwxr-xr-- 1 rhs rhs 461 Apr 13 01:59 Gravar CD.txt
1028629 0 drwxrwxrwx 2 rhs rhs 48 Jul 23 17:00 HD2
51472 4 -rwxr-xr-- 1 rhs rhs 209 Apr 13 02:42 INSTALL.LOG

Fstab

/dev/sda1 /boot ext2 defaults,noauto 1 2
/dev/sda2 / reiserfs noatime 0 1
/dev/sda5 /var reiserfs defaults 0 0
/dev/sda6 /home reiserfs defaults 0 0
/dev/sda7 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Wed Jul 25, 2007 4:46 pm    Post subject: Reply with quote

O /etc/fstab não tem entrada para o /home/publico/HD2. Se estiver a usar como tinha no 1º post, faça o seguinte:
Code:
# chown -R rhs:rhs /home/publico/HD2

_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
AngrA
n00b
n00b


Joined: 06 Apr 2003
Posts: 33
Location: Brasil

PostPosted: Wed Jul 25, 2007 8:33 pm    Post subject: Reply with quote

Funcionou, era problema do dono mesmo...

Obrigado pela ajuda...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portuguese 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