Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Been trying to convert to Ubuntu for a while, so last month after MS dropped XP support, it was time to dig in and make it happen. I'm fairly computer and coding literate, but I'm a total noob on the networking stuff. I've searched and read many threads. Just too confused at this point.

Running 12.04 on my desk top machine. My wifes laptop is on windows 7.
Currently I can access the shared directories on her laptop. On her laptop, my computer is not visible on the network, but if I type in my IP address, I can get to 2 of the folders I've shared. No login required. I need to make it visible. She'll never remember how to use the ip address.

One of these folders are in home, the other is on the desktop. Both of these I was able to set up sharing in the properties window and let nautilus set the permissions.
I need to share another folder that resides on a partitioned drive. This drive has the name "G files". Its is /media/G files/pictures.

When I check permissions on the 2 currently shared folders, they belong to the group sambashare. G files group is owned by myself, but I cannot change it. I have the SAMBA application installed. Though I'm trying to define everything using "the classic" method. From reading previous threads, here's a few items that I've seen asked for.

Copy of the smb.conf file (commented lines removed):

[global]

    workgroup = blackhole
    server string = %h server (Samba, Ubuntu)

;   wins support = no

;   wins server = w.x.y.z

;   dns proxy = no

;   name resolve order = lmhosts host wins bcast


;   interfaces = 127.0.0.0/8 eth0

;   bind interfaces only = yes

    log file = /var/log/samba/log.%m

    max log size = 1000   

    syslog = 0

    panic action = /usr/share/samba/panic-action %d

;   security = user

    encrypt passwords = yes

;   passdb backend = tdbsam

    obey pam restrictions = yes

    unix password sync = yes

    passwd program = /usr/bin/passwd %u
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

;   pam password change = yes

    map to guest = bad user


;   domain logons = yes
;   logon path = \\%N\profiles\%U

;   logon drive = H:

;   logon script = logon.cmd

; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

; add group script = /usr/sbin/addgroup --force-badname %g


;   printing = bsd
;   printcap name = /etc/printcap

;   printing = cups
;   printcap name = cups


;   include = /home/samba/etc/smb.conf.%m


;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &


;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash

;   winbind enum groups = yes
;   winbind enum users = yes


;   usershare max shares = 100

    usershare allow guests = yes
    username map = /etc/samba/smbusers
;   security = user
    guest ok = yes
    guest account = guest


;[homes]
;   comment = Home Directories
;   path = /media/G files
;   browseable = yes
;   guest ok = yes

;   read only = no

;   create mask = 0755

;   directory mask = 0755

;   valid users = %S

;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   read only = yes

;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700

[printers]
    comment = All Printers
    browseable = no
    path = /var/spool/samba
    printable = yes
;   guest ok = no
;   read only = yes
    create mask = 0700

[print$]
    comment = Printer Drivers
    path = /var/lib/samba/printers
;   browseable = yes
    writeable = yes
    guest ok = yes
;   write list = root, @lpadmin

;[cdrom]
;   comment = Samba server's CD-ROM
;   read only = yes
;   locking = no
;   path = /cdrom
;   guest ok = yes

;   preexec = /bin/mount /cdrom
;   postexec = /bin/umount /cdrom

This shows I'm the owner of "G files", not root. If I unmount the drive, this goes away.

todd@Todd-Office-Linux:~$ ll -a /media
total 72
drwxr-xr-x  9 root root  4096 May 21 06:49 ./
drwxr-xr-x 23 root root  4096 May  4 07:48 ../
lrwxrwxrwx  1 root root     6 Dec 22  2009 cdrom -> cdrom0/
drwxr-xr-x  2 root root  4096 Dec 22  2009 cdrom0/
drwx------  2 root root  4096 Sep  6  2011 C Win OS/
lrwxrwxrwx  1 root root     7 Dec 22  2009 floppy -> floppy0/
drwxr-xr-x  2 root root  4096 Dec 22  2009 floppy0/
drwx------  2 root root  4096 Sep  6  2011 FreeAgent Drive/
drwx------  1 todd todd  8192 May 17 11:23 FreeAgent Drive_/
drwx------  1 todd todd 36864 May 17 10:57 G Files/
drwxr-xr-x  2 root root  4096 Jan 15  2010 home/

I've unmounted the drive and tried to change the owner to root and also change permissions (chown and chmod). Neither worked or threw any error messages. I'd like to also share a directory on the external USB drive "FreeAgent Drive", but that's lower priority right now.

todd@Todd-Office-Linux:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:26:18:4a:26:c1  
          inet addr:192.168.1.7  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::226:18ff:fe4a:26c1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:187636 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160829 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:186067628 (186.0 MB)  TX bytes:25286637 (25.2 MB)
          Interrupt:18 

eth1      Link encap:Ethernet  HWaddr 00:26:18:4a:23:6f  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:17 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1262 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1262 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:110133 (110.1 KB)  TX bytes:110133 (110.1 KB)

Output from ipconfig off laptop: Windows IP Configuration

Wireless LAN adapter Wireless Network Connection:

   Connection-specific DNS Suffix  . : hsd1.co.comcast.net.
   Link-local IPv6 Address . . . . . : fe80::985b:b7b7:fe15:99f3%15
   IPv4 Address. . . . . . . . . . . : 192.168.1.10
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1

Tunnel adapter isatap.hsd1.co.comcast.net.:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : hsd1.co.comcast.net.

Tunnel adapter isatap.{64D221C1-5A17-4351-88BF-FFCAEE3AA59C}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : 

Tunnel adapter Teredo Tunneling Pseudo-Interface:

   Connection-specific DNS Suffix  . : 
   IPv6 Address. . . . . . . . . . . : 2001:0:9d38:90d7:4f8:34fa:3f57:fef5
   Link-local IPv6 Address . . . . . : fe80::4f8:34fa:3f57:fef5%18
   Default Gateway . . . . . . . . . : ::
share|improve this question
1  
Hi and welcome to the site. I have formatted your question for you but for next time, please have a look at this page for help on formatting your post. –  terdon May 22 at 3:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.