14.04 년에“.gvfs”가 나온 곳 map = /etc/samba/smbusers [printers]

내 질문은 “단순”입니다.

내가 연결된 Samba 공유의 로컬 마운트 지점을 어디에서 찾을 수 있습니까? 12.04에서 그것은 아래에있었습니다 *home/.gvfs*.

도움을 주셔서 감사합니다.

내 smb.conf 파일은 다음과 같습니다.

#======================= Global Settings =======================

[global]
workgroup = mshome
server string = %h server (Samba, Ubuntu)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
    syslog = 0
    panic action = /usr/share/samba/panic-action %d
encrypt passwords = no
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
    usershare allow guests = yes
    comment = Home Directories
    browseable = no
    read only = no
security = user
username map = /etc/samba/smbusers

[printers]
    comment = All Printers
    browseable = no
    path = /var/spool/samba
    printable = yes
;   guest ok = no
;   read only = yes
    create mask = 0700
# Windows clients look for this share name as a source of downloadable
# printer drivers

[print$]
    comment = Printer Drivers
    path = /var/lib/samba/printers
;   browseable = yes
;   read only = yes
;   guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
;   write list = root, @lpadmin
# A sample share for sharing your CD-ROM with others.

;[cdrom]
;   comment = Samba server's CD-ROM
;   read only = yes
;   locking = no
;   path = /cdrom
;   guest ok = yes
# The next two parameters show how to auto-mount a CD-ROM when the
#   cdrom share is accesed. For this to work /etc/fstab must contain
#   an entry like this:
#
#       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
#
# The CD-ROM gets unmounted automatically after the connection to the
#
# If you don't want to use auto-mounting/unmounting make sure the CD
#   is mounted on /cdrom
#
;   preexec = /bin/mount /cdrom
;   postexec = /bin/umount /cdrom

[RED]
    comment = RED USB Disk
    path = /media/laurent06000/RED
    writeable = yes
;   browseable = yes
    guest ok = yes

[flareGet]
    path = /home/laurent06000/flareGet
    writeable = yes
;   browseable = yes
    guest ok = yes

[windows]
    comment = Windows Main drive
    path = /media/windows
    writeable = yes
;   browseable = yes
    guest ok = yes



답변

LewisTM 덕분에 gvfs에서 폴더를 찾을 수 있습니다 /run/user/$UID/gvfs.

$ mount | grep gvfs

이것도 참조 하십시오 .


답변

.gvfs더 이상 없는 경우을 사용하여 gvfs 마운트 위치를 찾을 수 있어야합니다 mount | grep gvfs. 예를 들면 다음과 같습니다
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=nrd).

위치가 있으며 원하는 경우 프로그래밍 방식으로 가져올 수 있습니다 mount | grep gvfs | awk '{print $3}'. 여기 예제는을 반환합니다 /run/user/1000/gvfs.

12.10 이전 버전이라면 12.10 ~/.gvfs이후에 / run / user / user_id / gvfs /를 살펴보십시오 .
경우 ~/.gvfs이미 (당신은 이전 버전에서 업그레이드 한 경우 일 것이다) 존재, 그것은 새로운 릴리스에서 사방되지 않지만 새로운 디렉토리는 어쨌든 생성됩니다.

예를 들어 /etc/passwd, 또는을 실행 id --user하거나 실행 하여 몇 가지 다른 방식으로 uid를 찾을 수 있습니다 echo "$UID".

그러면 새로운 위치는 /run/user/$(id --user)/gvfs/

내 시스템에서 $ XDG_RUNTIME_DIR 변수는 gvfs 위의 디렉토리도 포함합니다.

$ env | grep user
[...]
XDG_RUNTIME_DIR=/run/user/1000

그래서 내 시스템에는 /run/user/1000/gvfs.

또한 내 gvfs 마운트가 ~ / .gvfs 또는 / run / user / <login> / gvfs에 표시되지 않는 이유를 참조하십시오
.


답변

$HOME디렉토리 안에 있습니다 .

$ locate .gvfs
/home/avinash/.gvfs


답변