



testparm -snet usershare info --longchown :special /home/altair/Videoschmod 2770 /home/altair/Videos 
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
server string = %h server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[homes]
comment = Home Directories
valid users = %S
create mask = 0700
directory mask = 0700
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[Audio]
path=/media/media/Audio
comment=
usershare_acl=Everyone:R,Unix User\whatusernameisfree:F,
guest_ok=n
[Music]
path=/media/media/Music
comment=
usershare_acl=Everyone:R,Unix User\whatusernameisfree:F,
guest_ok=n

ls -dl /media/media/Audiols -dl /media/media/Musicsudo smbpasswd -a remoteuser
drwxr-x--- 83 whatusernameisfree remotemedia 4096 Apr 7 17:04 /media/media/Music
drwxr-x--- 9 whatusernameisfree remotemedia 4096 Jun 21 2011 /media/media/Audio
sudo smbpasswd -a whatusernameisfree7
Or should I add whatusernameisfree7 to the remotemedia group?
At the moment, if a user wants to access my media, I create a user for them, put them in the remotemedia group and then they can access the folder

altair4 wrote:I thought you already did that for ssh and were using the same users:At the moment, if a user wants to access my media, I create a user for them, put them in the remotemedia group and then they can access the folder
sudo usermod -a -G remotemedia whatusernameisfree7Windows cannot access \\DESKTOP\Audio
You do not have permission to access \\DESKTOP\Audio. Contact your network administrator to request access.

altair4 wrote:Did you logout and login again for the group membership to take affect?

sudo id whatusernameisfree7
uid=1004(whatusernameisfree7) gid=1005(whatusernameisfree7) groups=1005(whatusernameisfree7),1002(remotemedia)

sudo chmod 0750 /path[Audio]
path=/media/media/Audio
comment=
usershare_acl=Everyone:R,Unix User\whatusernameisfree:F,
guest_ok=n
Unix User\whatusernameisfree:F
usershare_acl=Everyone:R
guest_ok=n


Windows cannot access \\DESKTOP\Audio
You do not have permission to access \\DESKTOP\Audio. Contact your network administrator to request access.
With the above, would that not then permit all Linux users (using SSHFS) to download whatever they like from me? Some users (my other laptop for example for example) can do that, but some are remote and I don't want them downloading my high def films
sshfs altair@192.168.0.100:/ /home/tester1/Test

drwxr-x--- altair plugdev /home/altair/Test
Windows cannot access \\DESKTOP\Audio
You do not have permission to access \\DESKTOP\Audio. Contact your network administrator to request access.

Users browsing this forum: No registered users and 7 guests