Questions tagged [shared-file]

4 questions
2
votes
4 answers

The file used by parent and child process

#include #include #include int main( int argc, char *argv[] ){ FILE *fptr; pid_t pid; fptr = fopen("Shared File.txt", "a"); pid = fork(); if( pid > 0 ){ // parent process int…
Goktug
  • 611
  • 6
  • 16
1
vote
1 answer

What's the best, secure way to share some .bashrc source between users and root?

How's the best, secure way to have /root/.bashrc and /home/user/.bashrc include a common .bash.shared file? In other words like this: /root/.bashrc --sources--> .bash.shared <--sources-- /home/user/.bashrc If I put .bash.shared in /root, then…
Elliptical view
  • 3,559
  • 4
  • 25
  • 44
0
votes
1 answer

How to share a folder between two users on the same linux laptop

Ubuntu 20.4 installed with user Marco created other user Polo by going to |settings > Users > Add User| created "commonDir" folder in Marco's home directory. |right click > new folder| logged out from Marco. |click top right corner > power Off/Log…
As13
  • 3
  • 1
0
votes
1 answer

How to make Samba serve a single File next to other Share Definitions

For sake of convinience, I'd like samba to share a file next to the other defined directories. Windows Users can access my samba shares by going to "Network" -> "STORAGE". In there, are some folders, like "Pictures", "Music", "Documents", etc. I'd…